home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 9 / AMUG BBS in a Box Volume IX (August 1993) (MacWizards).iso / Files / Prog / A / 004.TubeTest.cpt / TubeTest.c < prev    next >
MacBinary  |  1988-08-01  |  14.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: TubeTest.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Aug 1 18:08:16 1988, modified Mon Aug 1 18:08:16 1988, creator 'MPS ', type ASCII, 14351 bytes "TubeTest.c" , at 0x388f 518 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 75 62 65 54 65 | 73 74 2e 63 00 00 00 00 |..TubeTe|st.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 38 0f 00 | 00 02 06 9f 1a 9c 50 9f |.....8..|......P.|
|00000060| 1a 9c 50 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..P.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6e 3c 00 00 |........|....n<..|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 0d 23 0d 23 09 4d 61 63 | 69 6e 74 6f 73 68 20 44 |.#.#.Mac|intosh D|
|000000e0| 65 76 65 6c 6f 70 65 72 | 20 54 65 63 68 6e 69 63 |eveloper| Technic|
|000000f0| 61 6c 20 53 75 70 70 6f | 72 74 0d 23 0d 23 09 53 |al Suppo|rt.#.#.S|
|00000100| 69 6d 70 6c 65 20 43 6f | 6c 6f 72 20 51 75 69 63 |imple Co|lor Quic|
|00000110| 6b 44 72 61 77 20 41 6e | 69 6d 61 74 69 6f 6e 20 |kDraw An|imation |
|00000120| 53 61 6d 70 6c 65 20 41 | 70 70 6c 69 63 61 74 69 |Sample A|pplicati|
|00000130| 6f 6e 0d 23 0d 23 09 54 | 75 62 65 54 65 73 74 0d |on.#.#.T|ubeTest.|
|00000140| 23 0d 23 09 54 75 62 65 | 54 65 73 74 2e 70 09 2d |#.#.Tube|Test.p.-|
|00000150| 09 50 61 73 63 61 6c 20 | 53 6f 75 72 63 65 0d 23 |.Pascal |Source.#|
|00000160| 0d 23 09 43 6f 70 79 72 | 69 67 68 74 20 a9 20 31 |.#.Copyr|ight . 1|
|00000170| 39 38 38 20 41 70 70 6c | 65 20 43 6f 6d 70 75 74 |988 Appl|e Comput|
|00000180| 65 72 2c 20 49 6e 63 2e | 0d 23 09 41 6c 6c 20 72 |er, Inc.|.#.All r|
|00000190| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0d |ights re|served..|
|000001a0| 23 0d 23 09 56 65 72 73 | 69 6f 6e 73 3a 09 31 2e |#.#.Vers|ions:.1.|
|000001b0| 30 09 09 09 09 09 38 2f | 38 38 0d 23 0d 23 09 43 |0.....8/|88.#.#.C|
|000001c0| 6f 6d 70 6f 6e 65 6e 74 | 73 3a 09 54 75 62 65 54 |omponent|s:.TubeT|
|000001d0| 65 73 74 2e 70 09 09 09 | 41 75 67 75 73 74 20 31 |est.p...|August 1|
|000001e0| 2c 20 31 39 38 38 0d 23 | 09 09 09 09 54 75 62 65 |, 1988.#|....Tube|
|000001f0| 54 65 73 74 2e 63 09 09 | 09 41 75 67 75 73 74 20 |Test.c..|.August |
|00000200| 31 2c 20 31 39 38 38 0d | 23 09 09 09 09 54 75 62 |1, 1988.|#....Tub|
|00000210| 65 54 65 73 74 2e 72 09 | 09 09 41 75 67 75 73 74 |eTest.r.|..August|
|00000220| 20 31 2c 20 31 39 38 38 | 0d 23 09 09 09 09 50 54 | 1, 1988|.#....PT|
|00000230| 75 62 65 54 65 73 74 2e | 6d 61 6b 65 09 09 41 75 |ubeTest.|make..Au|
|00000240| 67 75 73 74 20 31 2c 20 | 31 39 38 38 0d 23 09 09 |gust 1, |1988.#..|
|00000250| 09 09 43 54 75 62 65 54 | 65 73 74 2e 6d 61 6b 65 |..CTubeT|est.make|
|00000260| 09 09 41 75 67 75 73 74 | 20 31 2c 20 31 39 38 38 |..August| 1, 1988|
|00000270| 0d 23 0d 23 09 54 68 65 | 20 54 75 62 65 54 65 73 |.#.#.The| TubeTes|
|00000280| 74 20 70 72 6f 67 72 61 | 6d 20 69 73 20 61 20 73 |t progra|m is a s|
|00000290| 69 6d 70 6c 65 20 64 65 | 6d 6f 6e 73 74 72 61 74 |imple de|monstrat|
|000002a0| 69 6f 6e 20 6f 66 20 68 | 6f 77 20 74 6f 20 75 73 |ion of h|ow to us|
|000002b0| 65 20 74 68 65 20 50 61 | 6c 65 74 74 65 20 0d 23 |e the Pa|lette .#|
|000002c0| 09 4d 61 6e 61 67 65 72 | 20 69 6e 20 61 20 63 6f |.Manager| in a co|
|000002d0| 6c 6f 72 20 70 72 6f 67 | 72 61 6d 2e 20 20 49 74 |lor prog|ram. It|
|000002e0| 20 68 61 73 20 61 20 73 | 70 65 63 69 61 6c 20 63 | has a s|pecial c|
|000002f0| 6f 6c 6f 72 20 70 61 6c | 65 74 74 65 20 74 68 61 |olor pal|ette tha|
|00000300| 74 20 69 73 20 61 73 73 | 6f 63 69 61 74 65 64 0d |t is ass|ociated.|
|00000310| 23 09 77 69 74 68 20 74 | 68 65 20 6d 61 69 6e 20 |#.with t|he main |
|00000320| 77 69 6e 64 6f 77 2e 20 | 20 54 68 65 20 63 6f 6c |window. | The col|
|00000330| 6f 72 73 20 61 72 65 20 | 61 6e 69 6d 61 74 65 64 |ors are |animated|
|00000340| 20 75 73 69 6e 67 20 74 | 68 65 20 50 61 6c 65 74 | using t|he Palet|
|00000350| 74 65 20 4d 61 6e 61 67 | 65 72 20 0d 23 09 74 6f |te Manag|er .#.to|
|00000360| 20 67 69 76 65 20 61 20 | 66 6c 6f 77 69 6e 67 20 | give a |flowing |
|00000370| 74 75 62 65 20 65 66 66 | 65 63 74 2e 20 20 54 68 |tube eff|ect. Th|
|00000380| 65 20 70 72 6f 67 72 61 | 6d 20 69 73 20 76 65 72 |e progra|m is ver|
|00000390| 79 20 73 69 6d 70 6c 65 | 2c 20 61 6e 64 20 74 68 |y simple|, and th|
|000003a0| 65 20 50 61 6c 65 74 74 | 65 0d 23 09 4d 61 6e 61 |e Palett|e.#.Mana|
|000003b0| 67 65 72 20 61 6e 64 20 | 64 72 61 77 69 6e 67 20 |ger and |drawing |
|000003c0| 70 61 72 74 73 20 61 72 | 65 20 70 75 74 20 69 6e |parts ar|e put in|
|000003d0| 20 73 65 70 61 72 61 74 | 65 20 73 75 62 72 6f 75 | separat|e subrou|
|000003e0| 74 69 6e 65 73 20 74 6f | 20 6d 61 6b 65 20 69 74 |tines to| make it|
|000003f0| 20 65 61 73 69 65 72 0d | 23 09 74 6f 20 66 69 67 | easier.|#.to fig|
|00000400| 75 72 65 20 6f 75 74 20 | 77 68 61 74 20 69 73 20 |ure out |what is |
|00000410| 68 61 70 70 65 6e 69 6e | 67 2e 0d 23 09 0d 23 09 |happenin|g..#..#.|
|00000420| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 69 73 20 73 |The prog|ram is s|
|00000430| 74 69 6c 6c 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |till a c|omplete |
|00000440| 4d 61 63 69 6e 74 6f 73 | 68 20 61 70 70 6c 69 63 |Macintos|h applic|
|00000450| 61 74 69 6f 6e 20 77 69 | 74 68 20 61 20 4d 61 69 |ation wi|th a Mai|
|00000460| 6e 20 45 76 65 6e 74 20 | 4c 6f 6f 70 2c 0d 23 09 |n Event |Loop,.#.|
|00000470| 73 6f 20 74 68 65 72 65 | 20 69 73 20 74 68 65 20 |so there| is the |
|00000480| 65 78 74 72 61 20 63 6f | 64 65 20 74 6f 20 72 75 |extra co|de to ru|
|00000490| 6e 20 74 68 65 20 4d 45 | 4c 2e 20 20 0d 23 09 0d |n the ME|L. .#..|
|000004a0| 23 09 54 68 65 72 65 20 | 69 73 20 61 20 72 65 73 |#.There |is a res|
|000004b0| 6f 75 72 63 65 20 66 69 | 6c 65 20 74 68 61 74 20 |ource fi|le that |
|000004c0| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 61 73 20 |is neces|sary as |
|000004d0| 77 65 6c 6c 2c 20 74 6f | 20 64 65 66 69 6e 65 20 |well, to| define |
|000004e0| 74 68 65 20 4d 65 6e 75 | 73 2c 20 57 69 6e 64 6f |the Menu|s, Windo|
|000004f0| 77 2c 0d 23 09 44 69 61 | 6c 6f 67 2c 20 61 6e 64 |w,.#.Dia|log, and|
|00000500| 20 50 61 6c 65 74 74 65 | 20 72 65 73 6f 75 72 63 | Palette| resourc|
|00000510| 65 73 20 75 73 65 64 20 | 69 6e 20 74 68 65 20 70 |es used |in the p|
|00000520| 72 6f 67 72 61 6d 2e 20 | 20 0d 23 0d 23 09 53 65 |rogram. | .#.#.Se|
|00000530| 65 20 53 61 6d 70 6c 65 | 20 61 6e 64 20 54 45 53 |e Sample| and TES|
|00000540| 61 6d 70 6c 65 20 66 6f | 72 20 74 68 65 20 67 65 |ample fo|r the ge|
|00000550| 6e 65 72 61 6c 20 73 74 | 72 75 63 74 75 72 65 20 |neral st|ructure |
|00000560| 61 6e 64 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 20 |and Mult|iFinder |
|00000570| 74 65 63 68 6e 69 71 75 | 65 73 20 74 68 61 74 0d |techniqu|es that.|
|00000580| 23 09 77 65 20 72 65 63 | 6f 6d 6d 65 6e 64 20 74 |#.we rec|ommend t|
|00000590| 68 61 74 20 79 6f 75 20 | 75 73 65 20 77 68 65 6e |hat you |use when|
|000005a0| 20 62 75 69 6c 64 69 6e | 67 20 61 20 6e 65 77 20 | buildin|g a new |
|000005b0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 0d 23 0d 2d |applicat|ion..#.-|
|000005c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |--------|-----*/.|
|00000610| 0d 20 2f 2a 0d 09 46 69 | 6c 65 20 54 75 62 65 54 |. /*..Fi|le TubeT|
|00000620| 65 73 74 2e 63 0d 0d 09 | 56 65 72 73 69 6f 6e 20 |est.c...|Version |
|00000630| 31 2e 30 3a 20 20 36 2f | 32 2f 38 38 0d 09 09 09 |1.0: 6/|2/88....|
|00000640| 09 20 37 2f 32 30 2f 38 | 38 09 44 4a 42 09 43 6f |. 7/20/8|8.DJB.Co|
|00000650| 6e 76 65 72 74 65 64 20 | 74 6f 20 43 20 28 4d 50 |nverted |to C (MP|
|00000660| 57 20 33 2e 30 20 4f 4e | 4c 59 29 0d 09 0d 09 34 |W 3.0 ON|LY)....4|
|00000670| 2f 31 39 2f 38 38 3a 0d | 09 54 75 62 65 54 65 73 |/19/88:.|.TubeTes|
|00000680| 74 20 2d 2d 20 41 20 73 | 6d 61 6c 6c 20 73 61 6d |t -- A s|mall sam|
|00000690| 70 6c 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ple appl|ication |
|000006a0| 77 72 69 74 74 65 6e 20 | 62 79 20 42 6f 33 62 20 |written |by Bo3b |
|000006b0| 4a 6f 68 6e 73 6f 6e 2e | 0d 09 54 68 65 20 69 64 |Johnson.|..The id|
|000006c0| 65 61 20 69 73 20 74 6f | 20 64 72 61 77 20 74 77 |ea is to| draw tw|
|000006d0| 6f 20 63 69 72 63 6c 65 | 73 20 69 6e 20 76 61 72 |o circle|s in var|
|000006e0| 79 69 6e 67 20 63 6f 6c | 6f 72 73 20 69 6e 20 74 |ying col|ors in t|
|000006f0| 68 65 20 77 69 6e 64 6f | 77 2c 20 74 68 65 6e 0d |he windo|w, then.|
|00000700| 09 61 6e 69 6d 61 74 65 | 20 74 68 65 20 63 6f 6c |.animate| the col|
|00000710| 6f 72 73 20 77 68 65 6e | 20 74 68 65 20 6d 65 6e |ors when| the men|
|00000720| 75 20 69 73 20 63 68 6f | 73 65 6e 2e 09 54 68 69 |u is cho|sen..Thi|
|00000730| 73 20 69 73 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |s is a c|omplete |
|00000740| 70 72 6f 67 72 61 6d 0d | 09 77 69 74 68 20 65 76 |program.|.with ev|
|00000750| 65 6e 74 20 6c 6f 6f 70 | 20 61 6e 64 20 65 76 65 |ent loop| and eve|
|00000760| 72 79 74 68 69 6e 67 2e | 09 49 74 20 69 73 20 69 |rything.|.It is i|
|00000770| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 61 20 |ntended |to be a |
|00000780| 73 69 6d 70 6c 65 20 65 | 78 61 6d 70 6c 65 20 6f |simple e|xample o|
|00000790| 66 0d 09 68 6f 77 20 74 | 6f 20 75 73 65 20 74 68 |f..how t|o use th|
|000007a0| 65 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |e Palett|e Manage|
|000007b0| 72 20 74 6f 20 64 6f 20 | 73 6f 6d 65 20 6d 69 6e |r to do |some min|
|000007c0| 6f 72 20 63 6f 6c 6f 72 | 20 61 6e 69 6d 61 74 69 |or color| animati|
|000007d0| 6f 6e 2c 20 61 6e 64 0d | 09 68 6f 77 20 74 6f 20 |on, and.|.how to |
|000007e0| 75 73 65 20 74 68 65 20 | 50 4d 20 74 6f 20 73 65 |use the |PM to se|
|000007f0| 74 20 75 70 20 74 68 65 | 20 63 6f 6c 6f 72 73 20 |t up the| colors |
|00000800| 64 65 73 69 72 65 64 20 | 69 6e 20 61 20 77 69 6e |desired |in a win|
|00000810| 64 6f 77 2e 0d 09 0d 09 | 41 6c 73 6f 20 73 65 65 |dow.....|Also see|
|00000820| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 66 69 | the res|ource fi|
|00000830| 6c 65 20 74 68 61 74 20 | 67 6f 65 73 20 77 69 74 |le that |goes wit|
|00000840| 68 20 74 68 69 73 20 74 | 6f 20 73 65 65 20 68 6f |h this t|o see ho|
|00000850| 77 20 74 68 65 20 50 61 | 6c 65 74 74 65 20 0d 09 |w the Pa|lette ..|
|00000860| 69 74 73 65 6c 66 20 69 | 73 20 6c 61 79 65 64 20 |itself i|s layed |
|00000870| 6f 75 74 2e 0d 09 0d 09 | 43 6f 75 6c 64 20 62 65 |out.....|Could be|
|00000880| 20 62 75 69 6c 74 20 77 | 69 74 68 20 73 6f 6d 65 | built w|ith some|
|00000890| 74 68 69 6e 67 20 6c 69 | 6b 65 20 74 68 69 73 3a |thing li|ke this:|
|000008a0| 0d 09 09 72 65 7a 20 54 | 75 62 65 54 65 73 74 2e |...rez T|ubeTest.|
|000008b0| 72 20 2d 6f 20 54 75 62 | 65 54 65 73 74 0d 09 09 |r -o Tub|eTest...|
|000008c0| 43 20 2d 72 20 54 75 62 | 65 54 65 73 74 2e 43 0d |C -r Tub|eTest.C.|
|000008d0| 09 09 4c 69 6e 6b 20 54 | 75 62 65 54 65 73 74 2e |..Link T|ubeTest.|
|000008e0| 63 2e 6f 20 b6 0d 09 09 | 09 22 7b 4c 69 62 72 61 |c.o ....|."{Libra|
|000008f0| 72 69 65 73 7d 22 49 6e | 74 65 72 66 61 63 65 2e |ries}"In|terface.|
|00000900| 6f 20 b6 0d 09 09 09 22 | 7b 43 4c 69 62 72 61 72 |o ....."|{CLibrar|
|00000910| 69 65 73 7d 22 43 52 75 | 6e 74 69 6d 65 2e 6f 20 |ies}"CRu|ntime.o |
|00000920| b6 0d 09 09 09 22 7b 43 | 4c 69 62 72 61 72 69 65 |....."{C|Librarie|
|00000930| 73 7d 22 43 49 6e 74 65 | 72 66 61 63 65 2e 6f 20 |s}"CInte|rface.o |
|00000940| b6 0d 09 09 09 2d 6f 20 | 43 54 75 62 65 54 65 73 |.....-o |CTubeTes|
|00000950| 74 0d 09 09 43 54 75 62 | 65 54 65 73 74 0d 20 2a |t...CTub|eTest. *|
|00000960| 2f 0d 20 0d 2f 2a 20 57 | 68 65 72 65 20 64 6f 65 |/. ./* W|here doe|
|00000970| 73 20 69 74 20 66 69 74 | 3a 0d 09 54 68 69 73 20 |s it fit|:..This |
|00000980| 69 73 20 61 20 73 65 72 | 69 65 73 20 6f 66 20 73 |is a ser|ies of s|
|00000990| 61 6d 70 6c 65 20 70 72 | 6f 67 72 61 6d 73 20 66 |ample pr|ograms f|
|000009a0| 6f 72 20 74 68 6f 73 65 | 20 64 6f 69 6e 67 20 64 |or those| doing d|
|000009b0| 65 76 65 6c 6f 70 6d 65 | 6e 74 0d 09 75 73 69 6e |evelopme|nt..usin|
|000009c0| 67 20 43 6f 6c 6f 72 20 | 51 75 69 63 6b 44 72 61 |g Color |QuickDra|
|000009d0| 77 2e 20 20 53 69 6e 63 | 65 20 74 68 65 20 77 68 |w. Sinc|e the wh|
|000009e0| 6f 6c 65 20 63 6f 6c 6f | 72 20 70 72 6f 62 6c 65 |ole colo|r proble|
|000009f0| 6d 20 64 65 70 65 6e 64 | 73 0d 09 75 70 6f 6e 20 |m depend|s..upon |
|00000a00| 74 68 65 20 65 78 61 63 | 74 20 65 66 66 65 63 74 |the exac|t effect|
|00000a10| 20 64 65 73 69 72 65 64 | 2c 20 74 68 65 72 65 20 | desired|, there |
|00000a20| 61 72 65 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |are a nu|mber of |
|00000a30| 61 6e 73 77 65 72 73 0d | 09 74 6f 20 68 6f 77 20 |answers.|.to how |
|00000a40| 74 6f 20 75 73 65 20 63 | 6f 6c 6f 72 73 2c 20 66 |to use c|olors, f|
|00000a50| 72 6f 6d 20 74 68 65 20 | 73 69 6d 70 6c 65 20 74 |rom the |simple t|
|00000a60| 6f 20 74 68 65 20 72 61 | 64 69 63 61 6c 6c 79 20 |o the ra|dically |
|00000a70| 63 6f 6d 70 6c 65 78 2e | 0d 09 54 68 65 73 65 20 |complex.|..These |
|00000a80| 70 72 6f 67 72 61 6d 73 | 20 74 72 79 20 74 6f 20 |programs| try to |
|00000a90| 63 6f 76 65 72 20 74 68 | 65 20 67 61 6d 75 74 2c |cover th|e gamut,|
|00000aa0| 20 73 6f 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 75 | so you |should u|
|00000ab0| 73 65 20 0d 09 77 68 69 | 63 68 20 65 76 65 72 20 |se ..whi|ch ever |
|00000ac0| 73 65 65 6d 73 20 61 70 | 70 72 6f 70 72 69 61 74 |seems ap|propriat|
|00000ad0| 65 2e 20 20 49 6e 20 6d | 6f 73 74 20 63 61 73 65 |e. In m|ost case|
|00000ae0| 73 2c 20 75 73 65 20 74 | 68 65 20 73 69 6d 70 6c |s, use t|he simpl|
|00000af0| 65 73 74 0d 09 6f 6e 65 | 20 74 68 61 74 20 77 69 |est..one| that wi|
|00000b00| 6c 6c 20 67 69 76 65 20 | 74 68 65 20 64 65 73 69 |ll give |the desi|
|00000b10| 72 65 64 20 72 65 73 75 | 6c 74 73 2e 20 20 54 68 |red resu|lts. Th|
|00000b20| 65 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 0d |e compat|ibility.|
|00000b30| 09 72 61 74 69 6e 67 20 | 69 73 20 66 72 6f 6d 20 |.rating |is from |
|00000b40| 30 2e 2e 39 20 77 68 65 | 72 65 20 6c 6f 77 20 69 |0..9 whe|re low i|
|00000b50| 73 20 62 65 74 74 65 72 | 2e 20 20 54 68 65 20 6d |s better|. The m|
|00000b60| 6f 72 65 20 6b 6e 6f 77 | 6e 20 72 69 73 6b 73 20 |ore know|n risks |
|00000b70| 0d 09 74 68 65 72 65 20 | 61 72 65 20 74 68 65 20 |..there |are the |
|00000b80| 68 69 67 68 65 72 20 74 | 68 65 20 72 61 74 69 6e |higher t|he ratin|
|00000b90| 67 2e 0d 09 0d 09 0d 09 | 54 68 65 20 70 72 6f 67 |g.......|The prog|
|00000ba0| 72 61 6d 73 20 28 69 6e | 20 6f 72 64 65 72 20 6f |rams (in| order o|
|00000bb0| 66 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 29 |f compat|ibility)|
|00000bc0| 3a 0d 09 0d 09 09 53 69 | 6c 6c 79 42 61 6c 6c 73 |:.....Si|llyBalls|
|00000bd0| 3a 0d 09 09 09 54 68 69 | 73 20 69 73 20 74 68 65 |:....Thi|s is the|
|00000be0| 20 73 69 6d 70 6c 65 73 | 74 20 75 73 65 20 6f 66 | simples|t use of|
|00000bf0| 20 43 6f 6c 6f 72 20 51 | 75 69 63 6b 44 72 61 77 | Color Q|uickDraw|
|00000c00| 2c 20 61 6e 64 20 64 6f | 65 73 0d 09 09 09 6e 6f |, and do|es....no|
|00000c10| 74 20 75 73 65 20 74 68 | 65 20 50 61 6c 65 74 74 |t use th|e Palett|
|00000c20| 65 20 4d 61 6e 61 67 65 | 72 2e 20 20 49 74 20 64 |e Manage|r. It d|
|00000c30| 72 61 77 73 20 72 61 6e | 64 6f 6d 6c 79 20 63 6f |raws ran|domly co|
|00000c40| 6c 6f 72 65 64 0d 09 09 | 09 62 61 6c 6c 73 20 69 |lored...|.balls i|
|00000c50| 6e 20 61 20 63 6f 6c 6f | 72 20 77 69 6e 64 6f 77 |n a colo|r window|
|00000c60| 2e 20 20 54 68 69 73 20 | 69 73 20 69 6e 74 65 6e |. This |is inten|
|00000c70| 64 65 64 20 74 6f 20 67 | 69 76 65 20 79 6f 75 0d |ded to g|ive you.|
|00000c80| 09 09 09 74 68 65 20 61 | 62 73 6f 6c 75 74 65 20 |...the a|bsolute |
|00000c90| 6d 69 6e 69 6d 75 6d 20 | 72 65 71 75 69 72 65 64 |minimum |required|
|00000ca0| 20 74 6f 20 67 65 74 20 | 63 6f 6c 6f 72 20 6f 6e | to get |color on|
|00000cb0| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 0d 09 09 09 | the scr|een.....|
|00000cc0| 57 72 69 74 74 65 6e 20 | 69 6e 20 73 74 72 61 69 |Written |in strai|
|00000cd0| 67 68 74 20 50 61 73 63 | 61 6c 20 63 6f 64 65 2e |ght Pasc|al code.|
|00000ce0| 0d 09 09 09 43 6f 6d 70 | 61 74 69 62 69 6c 69 74 |....Comp|atibilit|
|00000cf0| 79 20 72 61 74 69 6e 67 | 20 3d 20 30 2c 20 6e 6f |y rating| = 0, no|
|00000d00| 20 6b 6e 6f 77 6e 20 72 | 69 73 6b 73 2e 0d 09 09 | known r|isks....|
|00000d10| 0d 09 09 46 72 61 63 41 | 70 70 50 61 6c 65 74 74 |...FracA|ppPalett|
|00000d20| 65 3a 0d 09 09 09 54 68 | 69 73 20 69 73 20 61 20 |e:....Th|is is a |
|00000d30| 76 65 72 73 69 6f 6e 20 | 6f 66 20 46 72 61 63 41 |version |of FracA|
|00000d40| 70 70 20 74 68 61 74 20 | 75 73 65 73 20 6f 6e 6c |pp that |uses onl|
|00000d50| 79 20 74 68 65 20 50 61 | 6c 65 74 74 65 0d 09 09 |y the Pa|lette...|
|00000d60| 09 4d 61 6e 61 67 65 72 | 2e 20 20 49 74 20 64 6f |.Manager|. It do|
|00000d70| 65 73 20 6e 6f 74 20 73 | 75 70 70 6f 72 74 20 63 |es not s|upport c|
|00000d80| 6f 6c 6f 72 20 74 61 62 | 6c 65 20 61 6e 69 6d 61 |olor tab|le anima|
|00000d90| 74 69 6f 6e 0d 09 09 09 | 73 69 6e 63 65 20 74 68 |tion....|since th|
|00000da0| 61 74 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 50 |at part |of the P|
|00000db0| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 20 69 |alette M|anager i|
|00000dc0| 73 20 6e 6f 74 20 73 75 | 66 66 69 63 69 65 6e 74 |s not su|fficient|
|00000dd0| 2e 0d 09 09 09 54 68 65 | 20 70 72 6f 67 72 61 6d |.....The| program|
|00000de0| 20 64 65 6d 6f 6e 73 74 | 72 61 74 65 73 20 61 20 | demonst|rates a |
|00000df0| 66 75 6c 6c 20 63 6f 6c | 6f 72 20 70 61 6c 65 74 |full col|or palet|
|00000e00| 74 65 20 74 68 61 74 20 | 69 73 0d 09 09 09 75 73 |te that |is....us|
|00000e10| 65 64 20 74 6f 20 64 69 | 73 70 6c 61 79 20 74 68 |ed to di|splay th|
|00000e20| 65 20 4d 61 6e 64 65 6c | 62 72 6f 74 20 73 65 74 |e Mandel|brot set|
|00000e30| 2e 20 20 49 74 20 75 73 | 65 73 20 61 6e 20 6f 66 |. It us|es an of|
|00000e40| 66 73 63 72 65 65 6e 0d | 09 09 09 67 44 65 76 69 |fscreen.|...gDevi|
|00000e50| 63 65 20 77 2f 20 50 6f | 72 74 20 74 6f 20 68 61 |ce w/ Po|rt to ha|
|00000e60| 6e 64 6c 65 20 74 68 65 | 20 64 61 74 61 2c 20 75 |ndle the| data, u|
|00000e70| 73 69 6e 67 20 43 6f 70 | 79 42 69 74 73 20 74 6f |sing Cop|yBits to|
|00000e80| 0d 09 09 09 64 72 61 77 | 20 74 6f 20 74 68 65 20 |....draw| to the |
|00000e90| 77 69 6e 64 6f 77 2e 20 | 20 54 68 65 20 50 61 6c |window. | The Pal|
|00000ea0| 65 74 74 65 20 69 73 20 | 61 75 74 6f 6d 61 74 69 |ette is |automati|
|00000eb0| 63 61 6c 6c 79 20 0d 09 | 09 09 61 73 73 6f 63 69 |cally ..|..associ|
|00000ec0| 61 74 65 64 20 77 69 74 | 68 20 65 61 63 68 20 77 |ated wit|h each w|
|00000ed0| 69 6e 64 6f 77 2e 20 20 | 54 68 65 20 50 49 43 54 |indow. |The PICT|
|00000ee0| 20 66 69 6c 65 73 20 61 | 72 65 20 72 65 61 64 0d | files a|re read.|
|00000ef0| 09 09 09 61 6e 64 20 77 | 72 69 74 74 65 6e 20 75 |...and w|ritten u|
|00000f00| 73 69 6e 67 20 74 68 65 | 20 62 6f 74 74 6c 65 6e |sing the| bottlen|
|00000f10| 65 63 6b 73 2c 20 74 6f | 20 73 61 76 65 20 6f 6e |ecks, to| save on|
|00000f20| 20 6d 65 6d 6f 72 79 0d | 09 09 09 75 73 65 61 67 | memory.|...useag|
|00000f30| 65 2e 0d 09 09 09 57 72 | 69 74 74 65 6e 20 69 6e |e.....Wr|itten in|
|00000f40| 20 4d 61 63 41 70 70 20 | 4f 62 6a 65 63 74 20 50 | MacApp |Object P|
|00000f50| 61 73 63 61 6c 20 63 6f | 64 65 2e 0d 09 09 09 43 |ascal co|de.....C|
|00000f60| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 72 61 74 |ompatibi|lity rat|
|00000f70| 69 6e 67 20 3d 20 30 2c | 20 6e 6f 20 6b 6e 6f 77 |ing = 0,| no know|
|00000f80| 6e 20 72 69 73 6b 73 2e | 0d 09 09 0d 09 09 54 75 |n risks.|......Tu|
|00000f90| 62 65 54 65 73 74 3a 09 | 28 2a 2a 2a 29 0d 09 09 |beTest:.|(***)...|
|00000fa0| 09 54 68 69 73 20 69 73 | 20 61 20 73 6d 61 6c 6c |.This is| a small|
|00000fb0| 20 64 65 6d 6f 20 70 72 | 6f 67 72 61 6d 20 74 68 | demo pr|ogram th|
|00000fc0| 61 74 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |at demon|strates |
|00000fd0| 75 73 69 6e 67 20 74 68 | 65 0d 09 09 09 50 61 6c |using th|e....Pal|
|00000fe0| 65 74 74 65 20 4d 61 6e | 61 67 65 72 20 66 6f 72 |ette Man|ager for|
|00000ff0| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 61 6e 69 | color t|able ani|
|00001000| 6d 61 74 69 6f 6e 2e 20 | 20 49 74 20 75 73 65 73 |mation. | It uses|
|00001010| 20 61 20 0d 09 09 09 63 | 6f 6c 6f 72 20 70 61 6c | a ....c|olor pal|
|00001020| 65 74 74 65 20 77 69 74 | 68 20 61 6e 69 6d 61 74 |ette wit|h animat|
|00001030| 69 6e 67 20 65 6e 74 72 | 69 65 73 2c 20 61 6e 64 |ing entr|ies, and|
|00001040| 20 64 72 61 77 73 20 75 | 73 69 6e 67 20 74 68 65 | draws u|sing the|
|00001050| 0d 09 09 09 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |....Pale|tte Mana|
|00001060| 67 65 72 2e 20 20 54 68 | 65 72 65 20 61 72 65 20 |ger. Th|ere are |
|00001070| 74 77 6f 20 63 69 72 63 | 6c 65 73 20 6f 66 20 61 |two circ|les of a|
|00001080| 6e 69 6d 61 74 69 6e 67 | 20 63 6f 6c 6f 72 73 0d |nimating| colors.|
|00001090| 09 09 09 77 68 69 63 68 | 20 67 69 76 65 73 20 61 |...which| gives a|
|000010a0| 20 66 6c 6f 77 69 6e 67 | 20 74 75 62 65 20 65 66 | flowing| tube ef|
|000010b0| 66 65 63 74 2e 20 20 54 | 68 69 73 20 69 73 20 61 |fect. T|his is a|
|000010c0| 20 76 61 6c 69 64 20 63 | 61 73 65 0d 09 09 09 66 | valid c|ase....f|
|000010d0| 6f 72 20 75 73 69 6e 67 | 20 74 68 65 20 61 6e 69 |or using| the ani|
|000010e0| 6d 61 74 69 6e 67 20 63 | 6f 6c 6f 72 73 20 61 73 |mating c|olors as|
|000010f0| 70 65 63 74 20 6f 66 20 | 74 68 65 20 50 61 6c 65 |pect of |the Pale|
|00001100| 74 74 65 20 4d 61 6e 61 | 67 65 72 2c 0d 09 09 09 |tte Mana|ger,....|
|00001110| 73 69 6e 63 65 20 74 68 | 65 20 69 6d 61 67 65 20 |since th|e image |
|00001120| 69 73 20 62 65 69 6e 67 | 20 64 72 61 77 6e 20 64 |is being| drawn d|
|00001130| 69 72 65 63 74 6c 79 2e | 0d 09 09 09 57 72 69 74 |irectly.|....Writ|
|00001140| 74 65 6e 20 69 6e 20 73 | 74 72 61 69 67 68 74 20 |ten in s|traight |
|00001150| 50 61 73 63 61 6c 20 63 | 6f 64 65 2e 0d 09 09 09 |Pascal c|ode.....|
|00001160| 43 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 72 61 |Compatib|ility ra|
|00001170| 74 69 6e 67 20 3d 20 30 | 2c 20 6e 6f 20 6b 6e 6f |ting = 0|, no kno|
|00001180| 77 6e 20 72 69 73 6b 73 | 2e 0d 09 09 0d 09 09 46 |wn risks|.......F|
|00001190| 72 61 63 41 70 70 3a 0d | 09 09 09 54 68 69 73 20 |racApp:.|...This |
|000011a0| 69 73 20 74 68 65 20 d4 | 63 6f 6d 6d 65 72 63 69 |is the .|commerci|
|000011b0| 61 6c 20 71 75 61 6c 69 | 74 79 d5 20 76 65 72 73 |al quali|ty. vers|
|000011c0| 69 6f 6e 20 6f 66 20 46 | 72 61 63 41 70 70 2e 20 |ion of F|racApp. |
|000011d0| 20 54 68 69 73 0d 09 09 | 09 76 65 72 73 69 6f 6e | This...|.version|
|000011e0| 20 73 75 70 70 6f 72 74 | 73 20 63 6f 6c 6f 72 20 | support|s color |
|000011f0| 74 61 62 6c 65 20 61 6e | 69 6d 61 74 69 6f 6e 2c |table an|imation,|
|00001200| 20 75 73 69 6e 67 20 61 | 6e 20 6f 66 66 73 63 72 | using a|n offscr|
|00001210| 65 65 6e 0d 09 09 09 67 | 44 65 76 69 63 65 20 77 |een....g|Device w|
|00001220| 2f 20 50 6f 72 74 2c 20 | 61 6e 64 20 68 61 6e 64 |/ Port, |and hand|
|00001230| 6c 65 73 20 6d 75 6c 74 | 69 70 6c 65 20 64 6f 63 |les mult|iple doc|
|00001240| 75 6d 65 6e 74 73 2e 20 | 20 54 68 65 0d 09 09 09 |uments. | The....|
|00001250| 43 6f 70 79 42 69 74 73 | 20 75 70 64 61 74 65 73 |CopyBits| updates|
|00001260| 20 74 6f 20 74 68 65 20 | 73 63 72 65 65 6e 20 61 | to the |screen a|
|00001270| 72 65 20 61 73 20 66 61 | 73 74 20 61 73 20 70 6f |re as fa|st as po|
|00001280| 73 73 69 62 6c 65 2e 20 | 20 54 68 65 0d 09 09 09 |ssible. | The....|
|00001290| 70 72 6f 67 72 61 6d 20 | 64 6f 65 73 20 6e 6f 74 |program |does not|
|000012a0| 20 75 73 65 20 74 68 65 | 20 50 61 6c 65 74 74 65 | use the| Palette|
|000012b0| 20 4d 61 6e 61 67 65 72 | 2c 20 65 78 63 65 70 74 | Manager|, except|
|000012c0| 20 74 6f 0d 09 09 09 70 | 72 6f 76 69 64 65 20 66 | to....p|rovide f|
|000012d0| 6f 72 20 74 68 65 20 73 | 79 73 74 65 6d 20 70 61 |or the s|ystem pa|
|000012e0| 6c 65 74 74 65 2c 20 6f | 72 20 63 6f 6c 6f 72 20 |lette, o|r color |
|000012f0| 6d 6f 64 65 73 20 77 69 | 74 68 20 6c 65 73 73 20 |modes wi|th less |
|00001300| 74 68 61 6e 0d 09 09 09 | 32 35 35 20 63 6f 6c 6f |than....|255 colo|
|00001310| 72 73 2e 20 20 46 6f 72 | 20 63 6f 6c 6f 72 20 74 |rs. For| color t|
|00001320| 61 62 6c 65 20 61 6e 69 | 6d 61 74 69 6f 6e 20 75 |able ani|mation u|
|00001330| 73 69 6e 67 20 61 6e 20 | 6f 66 66 73 63 72 65 65 |sing an |offscree|
|00001340| 6e 0d 09 09 09 67 44 65 | 76 69 63 65 20 77 2f 20 |n....gDe|vice w/ |
|00001350| 50 6f 72 74 2c 20 69 74 | 20 75 73 65 73 20 74 68 |Port, it| uses th|
|00001360| 65 20 43 6f 6c 6f 72 20 | 4d 61 6e 61 67 65 72 20 |e Color |Manager |
|00001370| 61 6e 64 20 68 61 6e 64 | 6c 65 73 20 74 68 65 0d |and hand|les the.|
|00001380| 09 09 09 63 6f 6c 6f 72 | 73 20 69 74 73 65 6c 66 |...color|s itself|
|00001390| 2e 20 20 53 74 72 69 63 | 74 20 63 6f 6d 70 61 74 |. Stric|t compat|
|000013a0| 69 62 69 6c 69 74 79 20 | 77 61 73 20 72 65 6c 61 |ibility |was rela|
|000013b0| 78 65 64 20 74 6f 20 61 | 6c 6c 6f 77 20 66 6f 72 |xed to a|llow for|
|000013c0| 0d 09 09 09 61 20 68 69 | 67 68 65 72 20 70 65 72 |....a hi|gher per|
|000013d0| 66 6f 72 6d 61 6e 63 65 | 20 70 72 6f 67 72 61 6d |formance| program|
|000013e0| 2e 20 20 54 68 69 73 20 | 69 73 20 74 68 65 20 6d |. This |is the m|
|000013f0| 6f 73 74 20 d4 72 65 61 | 6c d5 20 6f 66 20 74 68 |ost .rea|l. of th|
|00001400| 65 0d 09 09 09 73 61 6d | 70 6c 65 20 70 72 6f 67 |e....sam|ple prog|
|00001410| 72 61 6d 73 2e 0d 09 09 | 09 57 72 69 74 74 65 6e |rams....|.Written|
|00001420| 20 69 6e 20 4d 61 63 41 | 70 70 20 4f 62 6a 65 63 | in MacA|pp Objec|
|00001430| 74 20 50 61 73 63 61 6c | 20 63 6f 64 65 2e 0d 09 |t Pascal| code...|
|00001440| 09 09 43 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |..Compat|ibility |
|00001450| 72 61 74 69 6e 67 20 3d | 20 32 2e 20 20 28 6e 6f |rating =| 2. (no|
|00001460| 74 68 69 6e 67 20 77 69 | 6c 6c 20 62 72 65 61 6b |thing wi|ll break|
|00001470| 2c 20 62 75 74 20 69 74 | 20 6d 61 79 20 6e 6f 74 |, but it| may not|
|00001480| 0d 09 09 09 09 61 6c 77 | 61 79 73 20 6c 6f 6f 6b |.....alw|ays look|
|00001490| 20 63 6f 72 72 65 63 74 | 2e 29 0d 09 09 0d 09 09 | correct|.)......|
|000014a0| 46 72 61 63 41 70 70 33 | 30 30 3a 0d 09 09 09 54 |FracApp3|00:....T|
|000014b0| 68 69 73 20 64 6f 65 73 | 6e 27 74 20 73 75 70 70 |his does|n't supp|
|000014c0| 6f 72 74 20 63 6f 6c 6f | 72 73 2c 20 62 75 74 20 |ort colo|rs, but |
|000014d0| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 68 6f 77 |demonstr|ates how|
|000014e0| 20 74 6f 20 63 72 65 61 | 74 65 20 61 6e 64 0d 09 | to crea|te and..|
|000014f0| 09 09 75 73 65 20 61 20 | 33 30 30 20 64 70 69 20 |..use a |300 dpi |
|00001500| 62 69 74 6d 61 70 20 77 | 2f 20 50 6f 72 74 2e 20 |bitmap w|/ Port. |
|00001510| 20 54 68 65 20 62 69 74 | 6d 61 70 20 69 73 20 70 | The bit|map is p|
|00001520| 72 69 6e 74 65 64 20 61 | 74 20 66 75 6c 6c 0d 09 |rinted a|t full..|
|00001530| 09 09 72 65 73 6f 6c 75 | 74 69 6f 6e 20 6f 6e 20 |..resolu|tion on |
|00001540| 4c 61 73 65 72 57 72 69 | 74 65 72 73 2c 20 61 6e |LaserWri|ters, an|
|00001550| 64 20 63 6c 69 70 70 65 | 64 20 6f 6e 20 6f 74 68 |d clippe|d on oth|
|00001560| 65 72 20 70 72 69 6e 74 | 65 72 73 20 28 62 75 74 |er print|ers (but|
|00001570| 0d 09 09 09 74 68 65 79 | 20 73 74 69 6c 6c 20 70 |....they| still p|
|00001580| 72 69 6e 74 29 2e 20 20 | 49 74 20 64 65 6d 6f 6e |rint). |It demon|
|00001590| 73 74 72 61 74 65 73 20 | 68 6f 77 20 74 6f 20 75 |strates |how to u|
|000015a0| 73 65 20 61 20 68 69 67 | 68 20 72 65 73 6f 6c 75 |se a hig|h resolu|
|000015b0| 74 69 6f 6e 0d 09 09 09 | 69 6d 61 67 65 20 61 73 |tion....|image as|
|000015c0| 20 61 20 50 49 43 54 20 | 66 69 6c 65 2c 20 61 6e | a PICT |file, an|
|000015d0| 64 20 68 6f 77 20 74 6f | 20 70 72 69 6e 74 20 74 |d how to| print t|
|000015e0| 68 65 6d 20 6f 75 74 2e | 0d 09 09 09 57 72 69 74 |hem out.|....Writ|
|000015f0| 74 65 6e 20 69 6e 20 4d | 61 63 41 70 70 20 4f 62 |ten in M|acApp Ob|
|00001600| 6a 65 63 74 20 50 61 73 | 63 61 6c 20 63 6f 64 65 |ject Pas|cal code|
|00001610| 2e 0d 09 09 09 43 6f 6d | 70 61 74 69 62 69 6c 69 |.....Com|patibili|
|00001620| 74 79 20 72 61 74 69 6e | 67 20 3d 20 31 2e 20 20 |ty ratin|g = 1. |
|00001630| 28 54 68 65 20 75 73 65 | 20 6f 66 20 50 72 47 65 |(The use| of PrGe|
|00001640| 6e 65 72 61 6c 20 69 73 | 20 73 6c 69 67 68 74 6c |neral is| slightl|
|00001650| 79 20 0d 09 09 09 09 6f | 75 74 20 6f 66 20 74 68 |y .....o|ut of th|
|00001660| 65 20 6f 72 64 69 6e 61 | 72 79 2c 20 61 6c 74 68 |e ordina|ry, alth|
|00001670| 6f 75 67 68 20 73 75 70 | 70 6f 72 74 65 64 2e 29 |ough sup|ported.)|
|00001680| 0d 2a 2f 0d 0d 0d 23 69 | 6e 63 6c 75 64 65 20 3c |.*/...#i|nclude <|
|00001690| 54 79 70 65 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Types.h>|.#includ|
|000016a0| 65 20 3c 4d 65 6d 6f 72 | 79 2e 68 3e 0d 23 69 6e |e <Memor|y.h>.#in|
|000016b0| 63 6c 75 64 65 20 3c 51 | 75 69 63 6b 64 72 61 77 |clude <Q|uickdraw|
|000016c0| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 50 61 |.h>.#inc|lude <Pa|
|000016d0| 6c 65 74 74 65 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |lette.h>|.#includ|
|000016e0| 65 20 3c 46 6f 6e 74 73 | 2e 68 3e 0d 23 69 6e 63 |e <Fonts|.h>.#inc|
|000016f0| 6c 75 64 65 20 3c 45 76 | 65 6e 74 73 2e 68 3e 0d |lude <Ev|ents.h>.|
|00001700| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 65 6e 75 73 2e |#include| <Menus.|
|00001710| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 57 69 6e |h>.#incl|ude <Win|
|00001720| 64 6f 77 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |dows.h>.|#include|
|00001730| 20 3c 54 65 78 74 45 64 | 69 74 2e 68 3e 0d 23 69 | <TextEd|it.h>.#i|
|00001740| 6e 63 6c 75 64 65 20 3c | 44 69 61 6c 6f 67 73 2e |nclude <|Dialogs.|
|00001750| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 44 65 73 |h>.#incl|ude <Des|
|00001760| 6b 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 4f |k.h>.#in|clude <O|
|00001770| 53 55 74 69 6c 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |SUtils.h|>.#inclu|
|00001780| 64 65 20 3c 54 6f 6f 6c | 55 74 69 6c 73 2e 68 3e |de <Tool|Utils.h>|
|00001790| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 53 65 67 4c 6f |.#includ|e <SegLo|
|000017a0| 61 64 2e 68 3e 0d 09 0d | 2f 2a 20 43 6f 6e 73 74 |ad.h>...|/* Const|
|000017b0| 61 6e 74 73 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |ants */.|#define |
|000017c0| 61 70 70 6c 65 49 44 09 | 09 09 09 31 30 30 30 09 |appleID.|...1000.|
|000017d0| 09 09 2f 2a 20 72 65 73 | 6f 75 72 63 65 20 49 44 |../* res|ource ID|
|000017e0| 73 2f 6d 65 6e 75 20 49 | 44 73 20 66 6f 72 20 41 |s/menu I|Ds for A|
|000017f0| 70 70 6c 65 2c 20 2a 2f | 0d 23 64 65 66 69 6e 65 |pple, */|.#define|
|00001800| 20 66 69 6c 65 49 44 09 | 09 09 09 31 30 30 31 09 | fileID.|...1001.|
|00001810| 09 09 2f 2a 20 09 46 69 | 6c 65 20 61 6e 64 20 2a |../* .Fi|le and *|
|00001820| 2f 0d 23 64 65 66 69 6e | 65 20 65 64 69 74 49 44 |/.#defin|e editID|
|00001830| 09 09 09 09 31 30 30 32 | 09 09 09 2f 2a 09 45 64 |....1002|.../*.Ed|
|00001840| 69 74 20 6d 65 6e 75 73 | 20 2a 2f 0d 09 0d 23 64 |it menus| */...#d|
|00001850| 65 66 69 6e 65 20 61 70 | 70 6c 65 4d 09 09 09 09 |efine ap|pleM....|
|00001860| 30 09 09 09 09 2f 2a 20 | 49 6e 64 65 78 20 66 6f |0..../* |Index fo|
|00001870| 72 20 65 61 63 68 20 6d | 65 6e 75 20 69 6e 20 6d |r each m|enu in m|
|00001880| 79 4d 65 6e 75 73 20 28 | 61 72 72 61 79 20 6f 66 |yMenus (|array of|
|00001890| 20 6d 65 6e 75 20 68 61 | 6e 64 6c 65 73 29 20 2a | menu ha|ndles) *|
|000018a0| 2f 0d 23 64 65 66 69 6e | 65 20 66 69 6c 65 4d 09 |/.#defin|e fileM.|
|000018b0| 09 09 09 31 0d 23 64 65 | 66 69 6e 65 20 65 64 69 |...1.#de|fine edi|
|000018c0| 74 4d 09 09 09 09 32 0d | 0d 23 64 65 66 69 6e 65 |tM....2.|.#define|
|000018d0| 20 6d 65 6e 75 43 6f 75 | 6e 74 09 09 09 33 09 09 | menuCou|nt...3..|
|000018e0| 09 09 2f 2a 20 54 6f 74 | 61 6c 20 6e 75 6d 62 65 |../* Tot|al numbe|
|000018f0| 72 20 6f 66 20 6d 65 6e | 75 73 20 2a 2f 0d 0d 23 |r of men|us */..#|
|00001900| 64 65 66 69 6e 65 20 77 | 69 6e 64 6f 77 49 44 09 |define w|indowID.|
|00001910| 09 09 31 30 30 30 09 09 | 09 2f 2a 20 52 65 73 6f |..1000..|./* Reso|
|00001920| 75 72 63 65 20 49 44 20 | 66 6f 72 20 6d 61 69 6e |urce ID |for main|
|00001930| 20 77 69 6e 64 6f 77 20 | 2a 2f 0d 23 64 65 66 69 | window |*/.#defi|
|00001940| 6e 65 20 61 62 6f 75 74 | 4d 65 44 4c 4f 47 20 09 |ne about|MeDLOG .|
|00001950| 09 31 30 30 30 09 09 09 | 2f 2a 20 41 6e 64 20 52 |.1000...|/* And R|
|00001960| 65 73 6f 75 72 63 65 20 | 49 44 20 66 6f 72 20 41 |esource |ID for A|
|00001970| 62 6f 75 74 20 62 6f 78 | 20 64 69 61 6c 6f 67 2e |bout box| dialog.|
|00001980| 20 2a 2f 0d 0d 23 64 65 | 66 69 6e 65 20 74 75 62 | */..#de|fine tub|
|00001990| 75 6c 61 72 49 74 65 6d | 09 09 09 31 09 09 09 09 |ularItem|...1....|
|000019a0| 2f 2a 20 57 68 65 6e 20 | 63 68 65 63 6b 65 64 2c |/* When |checked,|
|000019b0| 20 61 6e 69 6d 61 74 69 | 6f 6e 20 6f 66 20 63 6f | animati|on of co|
|000019c0| 6c 6f 72 73 2e 20 2a 2f | 0d 23 64 65 66 69 6e 65 |lors. */|.#define|
|000019d0| 20 71 75 69 74 49 74 65 | 6d 09 09 09 33 09 09 09 | quitIte|m...3...|
|000019e0| 09 2f 2a 20 51 75 69 74 | 20 69 6e 20 74 68 65 20 |./* Quit| in the |
|000019f0| 6d 65 6e 75 20 6f 66 20 | 63 6f 75 72 73 65 2e 20 |menu of |course. |
|00001a00| 2a 2f 0d 0d 23 64 65 66 | 69 6e 65 20 61 62 6f 75 |*/..#def|ine abou|
|00001a10| 74 4d 65 43 6f 6d 6d 61 | 6e 64 09 09 31 09 09 09 |tMeComma|nd..1...|
|00001a20| 09 2f 2a 20 4d 65 6e 75 | 20 69 74 65 6d 20 69 6e |./* Menu| item in|
|00001a30| 20 61 70 70 6c 65 20 6d | 65 6e 75 20 66 6f 72 20 | apple m|enu for |
|00001a40| 41 62 6f 75 74 20 54 75 | 62 65 54 65 73 74 20 69 |About Tu|beTest i|
|00001a50| 74 65 6d 20 2a 2f 0d 09 | 0d 23 64 65 66 69 6e 65 |tem */..|.#define|
|00001a60| 20 74 6f 74 61 6c 43 6f | 6c 6f 72 73 09 09 09 31 | totalCo|lors...1|
|00001a70| 35 32 09 09 09 09 2f 2a | 20 75 73 65 20 31 35 30 |52..../*| use 150|
|00001a80| 20 63 6f 6c 6f 72 73 20 | 69 6e 20 6f 75 72 20 70 | colors |in our p|
|00001a90| 61 6c 65 74 74 65 20 66 | 6f 72 20 64 72 61 77 69 |alette f|or drawi|
|00001aa0| 6e 67 20 65 79 65 73 2e | 20 2a 2f 0d 23 64 65 66 |ng eyes.| */.#def|
|00001ab0| 69 6e 65 20 6e 75 6d 43 | 6f 6c 6f 72 73 09 09 09 |ine numC|olors...|
|00001ac0| 31 35 30 09 09 09 09 2f | 2a 20 74 6f 20 73 6b 69 |150..../|* to ski|
|00001ad0| 70 20 62 6c 61 63 6b 20 | 61 6e 64 20 77 68 69 74 |p black |and whit|
|00001ae0| 65 2e 20 2a 2f 0d 09 0d | 09 0d 2f 2a 20 47 6c 6f |e. */...|../* Glo|
|00001af0| 62 61 6c 73 20 2a 2f 0d | 4d 65 6e 75 48 61 6e 64 |bals */.|MenuHand|
|00001b00| 6c 65 09 6d 79 4d 65 6e | 75 73 5b 6d 65 6e 75 43 |le.myMen|us[menuC|
|00001b10| 6f 75 6e 74 5d 3b 0d 52 | 65 63 74 09 09 64 72 61 |ount];.R|ect..dra|
|00001b20| 67 52 65 63 74 3b 09 09 | 09 09 09 09 2f 2a 20 52 |gRect;..|..../* R|
|00001b30| 65 63 74 61 6e 67 6c 65 | 20 75 73 65 64 20 74 6f |ectangle| used to|
|00001b40| 20 6d 61 72 6b 20 62 6f | 75 6e 64 73 20 66 6f 72 | mark bo|unds for|
|00001b50| 20 64 72 61 67 67 69 6e | 67 20 77 69 6e 64 6f 77 | draggin|g window|
|00001b60| 20 2a 2f 0d 42 6f 6f 6c | 65 61 6e 09 09 64 6f 6e | */.Bool|ean..don|
|00001b70| 65 46 6c 61 67 2c 09 09 | 09 09 09 09 2f 2a 20 74 |eFlag,..|..../* t|
|00001b80| 72 75 65 20 69 66 20 75 | 73 65 72 20 68 61 73 20 |rue if u|ser has |
|00001b90| 63 68 6f 73 65 6e 20 51 | 75 69 74 20 63 6f 6d 6d |chosen Q|uit comm|
|00001ba0| 61 6e 64 20 2a 2f 0d 09 | 09 09 74 75 62 65 43 68 |and */..|..tubeCh|
|00001bb0| 65 63 6b 3b 09 09 09 09 | 09 09 2f 2a 20 69 66 20 |eck;....|../* if |
|00001bc0| 74 72 75 65 2c 20 74 68 | 65 20 6d 65 6e 75 20 69 |true, th|e menu i|
|00001bd0| 73 20 63 68 65 63 6b 65 | 64 2c 20 61 6e 64 20 77 |s checke|d, and w|
|00001be0| 65 20 61 6e 69 6d 61 74 | 65 2e 20 2a 2f 0d 45 76 |e animat|e. */.Ev|
|00001bf0| 65 6e 74 52 65 63 6f 72 | 64 09 6d 79 45 76 65 6e |entRecor|d.myEven|
|00001c00| 74 3b 0d 57 69 6e 64 6f | 77 50 74 72 09 6d 79 57 |t;.Windo|wPtr.myW|
|00001c10| 69 6e 64 6f 77 2c 0d 09 | 09 09 77 68 69 63 68 57 |indow,..|..whichW|
|00001c20| 69 6e 64 6f 77 3b 0d 63 | 68 61 72 09 09 74 68 65 |indow;.c|har..the|
|00001c30| 43 68 61 72 3b 0d 4f 53 | 45 72 72 09 09 65 72 72 |Char;.OS|Err..err|
|00001c40| 6f 72 3b 0d 53 79 73 45 | 6e 76 52 65 63 09 74 68 |or;.SysE|nvRec.th|
|00001c50| 65 57 6f 72 6c 64 3b 0d | 0d 2f 2a 20 50 72 6f 74 |eWorld;.|./* Prot|
|00001c60| 6f 74 79 70 65 73 20 2a | 2f 0d 76 6f 69 64 20 44 |otypes *|/.void D|
|00001c70| 72 61 77 45 79 65 73 28 | 29 3b 0d 76 6f 69 64 20 |rawEyes(|);.void |
|00001c80| 53 65 74 55 70 4d 65 6e | 75 73 28 29 3b 0d 76 6f |SetUpMen|us();.vo|
|00001c90| 69 64 20 53 68 69 66 74 | 79 43 6f 6c 6f 72 73 28 |id Shift|yColors(|
|00001ca0| 29 3b 0d 76 6f 69 64 20 | 53 68 6f 77 41 62 6f 75 |);.void |ShowAbou|
|00001cb0| 74 4d 65 44 69 61 6c 6f | 67 28 29 3b 0d 76 6f 69 |tMeDialo|g();.voi|
|00001cc0| 64 20 44 6f 43 6f 6d 6d | 61 6e 64 28 6c 6f 6e 67 |d DoComm|and(long|
|00001cd0| 20 69 6e 74 20 6d 52 65 | 73 75 6c 74 29 3b 0d 0d | int mRe|sult);..|
|00001ce0| 0d 2f 2a 20 4d 61 6b 65 | 20 74 68 65 20 32 2e 30 |./* Make| the 2.0|
|00001cf0| 20 49 6e 74 65 72 66 61 | 63 65 20 66 6f 72 20 70 | Interfa|ce for p|
|00001d00| 61 73 73 69 6e 67 20 50 | 6f 69 6e 74 73 20 74 6f |assing P|oints to|
|00001d10| 20 74 68 65 20 54 6f 6f | 6c 62 6f 78 20 62 79 20 | the Too|lbox by |
|00001d20| 61 64 64 72 65 73 73 2c | 0d 20 20 20 65 6d 75 6c |address,|. emul|
|00001d30| 61 74 65 20 74 68 65 20 | 33 2e 30 20 6d 65 74 68 |ate the |3.0 meth|
|00001d40| 6f 64 20 6f 66 20 70 61 | 73 73 69 6e 67 20 50 6f |od of pa|ssing Po|
|00001d50| 69 6e 74 73 20 62 79 20 | 76 61 6c 75 65 2e 20 54 |ints by |value. T|
|00001d60| 68 69 73 20 6c 69 73 74 | 20 6f 6e 6c 79 20 63 6f |his list| only co|
|00001d70| 6e 74 61 69 6e 73 0d 20 | 20 20 74 68 65 20 61 66 |ntains. | the af|
|00001d80| 66 65 63 74 65 64 20 72 | 6f 75 74 69 6e 65 73 20 |fected r|outines |
|00001d90| 61 63 74 75 61 6c 6c 79 | 20 75 73 65 64 20 69 6e |actually| used in|
|00001da0| 20 74 68 69 73 20 73 61 | 6d 70 6c 65 2c 20 61 6e | this sa|mple, an|
|00001db0| 64 20 69 73 20 6e 6f 74 | 20 69 6e 74 65 6e 64 65 |d is not| intende|
|00001dc0| 64 20 74 6f 0d 20 20 20 | 62 65 20 61 20 63 6f 6d |d to. |be a com|
|00001dd0| 70 72 65 68 65 6e 73 69 | 76 65 20 6c 69 73 74 20 |prehensi|ve list |
|00001de0| 6f 66 20 74 68 65 20 61 | 66 66 65 63 74 65 64 20 |of the a|ffected |
|00001df0| 72 6f 75 74 69 6e 65 73 | 2e 20 2a 2f 0d 23 69 66 |routines|. */.#if|
|00001e00| 6e 64 65 66 20 4d 50 57 | 33 0d 23 09 64 65 66 69 |ndef MPW|3.#.defi|
|00001e10| 6e 65 20 46 69 6e 64 57 | 69 6e 64 6f 77 09 46 49 |ne FindW|indow.FI|
|00001e20| 4e 44 57 49 4e 44 4f 57 | 0d 23 09 64 65 66 69 6e |NDWINDOW|.#.defin|
|00001e30| 65 20 4d 65 6e 75 53 65 | 6c 65 63 74 09 4d 45 4e |e MenuSe|lect.MEN|
|00001e40| 55 53 45 4c 45 43 54 0d | 70 61 73 63 61 6c 20 76 |USELECT.|pascal v|
|00001e50| 6f 69 64 20 44 65 62 75 | 67 67 65 72 28 29 0d 20 |oid Debu|gger(). |
|00001e60| 20 20 20 65 78 74 65 72 | 6e 20 30 78 41 39 46 46 | exter|n 0xA9FF|
|00001e70| 3b 0d 23 65 6e 64 69 66 | 0d 0d 09 0d 6d 61 69 6e |;.#endif|....main|
|00001e80| 28 29 0d 7b 0d 09 2f 2a | 0d 09 2a 2a 09 54 65 73 |().{../*|..**.Tes|
|00001e90| 74 20 74 68 65 20 63 6f | 6d 70 75 74 65 72 20 74 |t the co|mputer t|
|00001ea0| 6f 20 62 65 20 73 75 72 | 65 20 77 65 20 63 61 6e |o be sur|e we can|
|00001eb0| 20 64 6f 20 63 6f 6c 6f | 72 2e 20 20 0d 09 2a 2a | do colo|r. ..**|
|00001ec0| 09 49 66 20 6e 6f 74 20 | 77 65 20 77 6f 75 6c 64 |.If not |we would|
|00001ed0| 20 63 72 61 73 68 2c 20 | 77 68 69 63 68 20 77 6f | crash, |which wo|
|00001ee0| 75 6c 64 20 62 65 20 62 | 61 64 2e 20 20 0d 09 2a |uld be b|ad. ..*|
|00001ef0| 2a 09 49 66 20 77 65 20 | 63 61 6e d5 74 20 72 75 |*.If we |can.t ru|
|00001f00| 6e 2c 20 6a 75 73 74 20 | 62 65 65 70 20 61 6e 64 |n, just |beep and|
|00001f10| 20 65 78 69 74 2e 0d 09 | 2a 2f 0d 09 65 72 72 6f | exit...|*/..erro|
|00001f20| 72 20 3d 20 53 79 73 45 | 6e 76 69 72 6f 6e 73 28 |r = SysE|nvirons(|
|00001f30| 31 2c 20 26 74 68 65 57 | 6f 72 6c 64 29 3b 0d 09 |1, &theW|orld);..|
|00001f40| 69 66 20 28 74 68 65 57 | 6f 72 6c 64 2e 68 61 73 |if (theW|orld.has|
|00001f50| 43 6f 6c 6f 72 51 44 20 | 3d 3d 20 66 61 6c 73 65 |ColorQD |== false|
|00001f60| 29 20 7b 0d 09 09 53 79 | 73 42 65 65 70 20 28 35 |) {...Sy|sBeep (5|
|00001f70| 30 29 3b 0d 09 09 45 78 | 69 74 54 6f 53 68 65 6c |0);...Ex|itToShel|
|00001f80| 6c 28 29 3b 09 09 09 09 | 09 09 09 2f 2a 20 49 66 |l();....|.../* If|
|00001f90| 20 6e 6f 20 63 6f 6c 6f | 72 20 51 44 2c 20 77 65 | no colo|r QD, we|
|00001fa0| 20 6d 75 73 74 20 6c 65 | 61 76 65 2e 20 2a 2f 0d | must le|ave. */.|
|00001fb0| 09 7d 3b 0d 0d 09 49 6e | 69 74 47 72 61 66 28 26 |.};...In|itGraf(&|
|00001fc0| 71 64 2e 74 68 65 50 6f | 72 74 29 3b 0d 09 49 6e |qd.thePo|rt);..In|
|00001fd0| 69 74 46 6f 6e 74 73 28 | 29 3b 0d 09 49 6e 69 74 |itFonts(|);..Init|
|00001fe0| 57 69 6e 64 6f 77 73 28 | 29 3b 0d 09 49 6e 69 74 |Windows(|);..Init|
|00001ff0| 4d 65 6e 75 73 28 29 3b | 0d 09 54 45 49 6e 69 74 |Menus();|..TEInit|
|00002000| 28 29 3b 0d 09 49 6e 69 | 74 44 69 61 6c 6f 67 73 |();..Ini|tDialogs|
|00002010| 28 6e 69 6c 29 3b 0d 09 | 49 6e 69 74 43 75 72 73 |(nil);..|InitCurs|
|00002020| 6f 72 28 29 3b 0d 0d 09 | 53 65 74 52 65 63 74 28 |or();...|SetRect(|
|00002030| 26 64 72 61 67 52 65 63 | 74 2c 20 34 2c 20 32 34 |&dragRec|t, 4, 24|
|00002040| 2c 20 71 64 2e 73 63 72 | 65 65 6e 42 69 74 73 2e |, qd.scr|eenBits.|
|00002050| 62 6f 75 6e 64 73 2e 72 | 69 67 68 74 20 2d 20 34 |bounds.r|ight - 4|
|00002060| 2c 20 71 64 2e 73 63 72 | 65 65 6e 42 69 74 73 2e |, qd.scr|eenBits.|
|00002070| 62 6f 75 6e 64 73 2e 62 | 6f 74 74 6f 6d 20 2d 20 |bounds.b|ottom - |
|00002080| 34 29 3b 0d 09 64 6f 6e | 65 46 6c 61 67 20 3d 20 |4);..don|eFlag = |
|00002090| 66 61 6c 73 65 3b 09 09 | 09 09 09 09 09 2f 2a 20 |false;..|...../* |
|000020a0| 66 6c 61 67 20 74 6f 20 | 64 65 74 65 63 74 20 77 |flag to |detect w|
|000020b0| 68 65 6e 20 51 75 69 74 | 20 63 6f 6d 6d 61 6e 64 |hen Quit| command|
|000020c0| 20 69 73 20 63 68 6f 73 | 65 6e 20 2a 2f 0d 09 74 | is chos|en */..t|
|000020d0| 75 62 65 43 68 65 63 6b | 20 3d 20 66 61 6c 73 65 |ubeCheck| = false|
|000020e0| 3b 09 09 09 09 09 09 09 | 2f 2a 20 66 6c 61 67 20 |;.......|/* flag |
|000020f0| 66 6f 72 20 61 6e 69 6d | 61 74 69 6e 67 20 63 6f |for anim|ating co|
|00002100| 6c 6f 72 20 69 73 20 69 | 6e 69 74 69 61 6c 6c 79 |lor is i|nitially|
|00002110| 20 6f 66 66 2e 20 2a 2f | 0d 0d 09 2f 2a 0d 09 2a | off. */|.../*..*|
|00002120| 2a 09 4f 70 65 6e 20 74 | 68 65 20 63 6f 6c 6f 72 |*.Open t|he color|
|00002130| 20 77 69 6e 64 6f 77 2e | 0d 09 2a 2f 0d 09 6d 79 | window.|..*/..my|
|00002140| 57 69 6e 64 6f 77 20 3d | 20 47 65 74 4e 65 77 43 |Window =| GetNewC|
|00002150| 57 69 6e 64 6f 77 28 77 | 69 6e 64 6f 77 49 44 2c |Window(w|indowID,|
|00002160| 20 6e 69 6c 2c 20 28 50 | 74 72 29 20 2d 31 29 3b | nil, (P|tr) -1);|
|00002170| 0d 09 53 65 74 50 6f 72 | 74 28 6d 79 57 69 6e 64 |..SetPor|t(myWind|
|00002180| 6f 77 29 3b 0d 0d 09 2f | 2a 0d 09 2a 2a 09 53 65 |ow);.../|*..**.Se|
|00002190| 74 20 75 70 20 6d 65 6e | 75 73 20 6c 61 73 74 2c |t up men|us last,|
|000021a0| 20 73 69 6e 63 65 20 74 | 68 65 20 6d 65 6e 75 20 | since t|he menu |
|000021b0| 64 72 61 77 69 6e 67 20 | 63 61 6e 20 74 68 65 6e |drawing |can then|
|000021c0| 20 75 73 65 20 0d 09 2a | 2a 09 74 68 65 20 70 61 | use ..*|*.the pa|
|000021d0| 6c 65 74 74 65 20 77 65 | 20 68 61 76 65 20 66 6f |lette we| have fo|
|000021e0| 72 20 6f 75 72 20 77 69 | 6e 64 6f 77 2e 20 0d 09 |r our wi|ndow. ..|
|000021f0| 2a 2a 09 4d 61 6b 65 73 | 20 74 68 65 20 41 70 70 |**.Makes| the App|
|00002200| 6c 65 20 6c 6f 6f 6b 20 | 62 65 74 74 65 72 2c 20 |le look |better, |
|00002210| 69 6e 20 70 61 72 74 69 | 63 75 6c 61 72 2e 0d 09 |in parti|cular...|
|00002220| 2a 2f 0d 09 53 65 74 55 | 70 4d 65 6e 75 73 28 29 |*/..SetU|pMenus()|
|00002230| 3b 0d 09 0d 09 2f 2a 0d | 09 2a 2a 09 4d 61 69 6e |;..../*.|.**.Main|
|00002240| 20 45 76 65 6e 74 20 4c | 6f 6f 70 0d 09 2a 2f 0d | Event L|oop..*/.|
|00002250| 09 64 6f 20 7b 0d 09 09 | 53 79 73 74 65 6d 54 61 |.do {...|SystemTa|
|00002260| 73 6b 28 29 3b 0d 0d 09 | 09 69 66 20 28 47 65 74 |sk();...|.if (Get|
|00002270| 4e 65 78 74 45 76 65 6e | 74 28 65 76 65 72 79 45 |NextEven|t(everyE|
|00002280| 76 65 6e 74 2c 20 26 6d | 79 45 76 65 6e 74 29 29 |vent, &m|yEvent))|
|00002290| 20 7b 0d 09 09 09 73 77 | 69 74 63 68 20 28 6d 79 | {....sw|itch (my|
|000022a0| 45 76 65 6e 74 2e 77 68 | 61 74 29 20 7b 09 09 09 |Event.wh|at) {...|
|000022b0| 09 2f 2a 20 63 61 73 65 | 20 6f 6e 20 65 76 65 6e |./* case| on even|
|000022c0| 74 20 74 79 70 65 20 2a | 2f 0d 0d 09 09 09 09 63 |t type *|/......c|
|000022d0| 61 73 65 20 6d 6f 75 73 | 65 44 6f 77 6e 3a 0d 09 |ase mous|eDown:..|
|000022e0| 09 09 09 09 73 77 69 74 | 63 68 20 28 46 69 6e 64 |....swit|ch (Find|
|000022f0| 57 69 6e 64 6f 77 28 6d | 79 45 76 65 6e 74 2e 77 |Window(m|yEvent.w|
|00002300| 68 65 72 65 2c 20 26 77 | 68 69 63 68 57 69 6e 64 |here, &w|hichWind|
|00002310| 6f 77 29 29 20 7b 0d 0d | 09 09 09 09 09 09 63 61 |ow)) {..|......ca|
|00002320| 73 65 20 69 6e 53 79 73 | 57 69 6e 64 6f 77 3a 09 |se inSys|Window:.|
|00002330| 09 2f 2a 20 64 65 73 6b | 20 61 63 63 65 73 73 6f |./* desk| accesso|
|00002340| 72 79 20 77 69 6e 64 6f | 77 3a 20 63 61 6c 6c 20 |ry windo|w: call |
|00002350| 44 65 73 6b 20 4d 61 6e | 61 67 65 72 20 74 6f 20 |Desk Man|ager to |
|00002360| 68 61 6e 64 6c 65 20 69 | 74 20 2a 2f 0d 09 09 09 |handle i|t */....|
|00002370| 09 09 09 09 53 79 73 74 | 65 6d 43 6c 69 63 6b 28 |....Syst|emClick(|
|00002380| 26 6d 79 45 76 65 6e 74 | 2c 20 77 68 69 63 68 57 |&myEvent|, whichW|
|00002390| 69 6e 64 6f 77 29 3b 0d | 09 09 09 09 09 09 09 62 |indow);.|.......b|
|000023a0| 72 65 61 6b 3b 0d 0d 09 | 09 09 09 09 09 63 61 73 |reak;...|.....cas|
|000023b0| 65 20 69 6e 4d 65 6e 75 | 42 61 72 3a 09 09 09 2f |e inMenu|Bar:.../|
|000023c0| 2a 20 4d 65 6e 75 20 62 | 61 72 3a 20 6c 65 61 72 |* Menu b|ar: lear|
|000023d0| 6e 20 77 68 69 63 68 20 | 63 6f 6d 6d 61 6e 64 2c |n which |command,|
|000023e0| 20 74 68 65 6e 20 65 78 | 65 63 75 74 65 20 69 74 | then ex|ecute it|
|000023f0| 2e 20 2a 2f 0d 09 09 09 | 09 09 09 09 44 6f 43 6f |. */....|....DoCo|
|00002400| 6d 6d 61 6e 64 28 4d 65 | 6e 75 53 65 6c 65 63 74 |mmand(Me|nuSelect|
|00002410| 28 6d 79 45 76 65 6e 74 | 2e 77 68 65 72 65 29 29 |(myEvent|.where))|
|00002420| 3b 0d 09 09 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |;.......|.break;.|
|00002430| 0d 09 09 09 09 09 09 63 | 61 73 65 20 69 6e 44 72 |.......c|ase inDr|
|00002440| 61 67 3a 09 09 09 2f 2a | 20 74 69 74 6c 65 20 62 |ag:.../*| title b|
|00002450| 61 72 3a 20 63 61 6c 6c | 20 57 69 6e 64 6f 77 20 |ar: call| Window |
|00002460| 4d 61 6e 61 67 65 72 20 | 74 6f 20 64 72 61 67 20 |Manager |to drag |
|00002470| 2a 2f 0d 09 09 09 09 09 | 09 09 44 72 61 67 57 69 |*/......|..DragWi|
|00002480| 6e 64 6f 77 28 77 68 69 | 63 68 57 69 6e 64 6f 77 |ndow(whi|chWindow|
|00002490| 2c 20 6d 79 45 76 65 6e | 74 2e 77 68 65 72 65 2c |, myEven|t.where,|
|000024a0| 20 26 64 72 61 67 52 65 | 63 74 29 3b 0d 09 09 09 | &dragRe|ct);....|
|000024b0| 09 09 09 09 62 72 65 61 | 6b 3b 0d 0d 09 09 09 09 |....brea|k;......|
|000024c0| 09 09 63 61 73 65 20 69 | 6e 43 6f 6e 74 65 6e 74 |..case i|nContent|
|000024d0| 3a 09 09 09 2f 2a 20 62 | 6f 64 79 20 6f 66 20 61 |:.../* b|ody of a|
|000024e0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 6e 64 6f |pplicati|on windo|
|000024f0| 77 3a 20 2a 2f 0d 09 09 | 09 09 09 09 09 69 66 20 |w: */...|.....if |
|00002500| 28 77 68 69 63 68 57 69 | 6e 64 6f 77 20 21 3d 20 |(whichWi|ndow != |
|00002510| 46 72 6f 6e 74 57 69 6e | 64 6f 77 28 29 29 0d 09 |FrontWin|dow())..|
|00002520| 09 09 09 09 09 09 09 53 | 65 6c 65 63 74 57 69 6e |.......S|electWin|
|00002530| 64 6f 77 28 77 68 69 63 | 68 57 69 6e 64 6f 77 29 |dow(whic|hWindow)|
|00002540| 3b 20 2f 2a 20 61 6e 64 | 20 6d 61 6b 65 20 69 74 |; /* and| make it|
|00002550| 20 61 63 74 69 76 65 20 | 69 66 20 6e 6f 74 20 2a | active |if not *|
|00002560| 2f 0d 09 09 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |/.......|.break;.|
|00002570| 09 09 09 09 09 7d 0d 09 | 09 09 09 09 62 72 65 61 |.....}..|....brea|
|00002580| 6b 3b 0d 0d 09 09 09 09 | 63 61 73 65 20 75 70 64 |k;......|case upd|
|00002590| 61 74 65 45 76 74 3a 09 | 09 09 09 09 2f 2a 20 55 |ateEvt:.|..../* U|
|000025a0| 70 64 61 74 65 20 74 68 | 65 20 65 79 65 73 20 69 |pdate th|e eyes i|
|000025b0| 6e 20 77 69 6e 64 6f 77 | 2e 20 2a 2f 0d 09 09 09 |n window|. */....|
|000025c0| 09 09 69 66 20 28 28 57 | 69 6e 64 6f 77 50 74 72 |..if ((W|indowPtr|
|000025d0| 29 20 6d 79 45 76 65 6e | 74 2e 6d 65 73 73 61 67 |) myEven|t.messag|
|000025e0| 65 20 3d 3d 20 6d 79 57 | 69 6e 64 6f 77 29 20 7b |e == myW|indow) {|
|000025f0| 0d 09 09 09 09 09 09 42 | 65 67 69 6e 55 70 64 61 |.......B|eginUpda|
|00002600| 74 65 28 28 57 69 6e 64 | 6f 77 50 74 72 29 20 6d |te((Wind|owPtr) m|
|00002610| 79 45 76 65 6e 74 2e 6d | 65 73 73 61 67 65 29 3b |yEvent.m|essage);|
|00002620| 0d 09 09 09 09 09 09 44 | 72 61 77 45 79 65 73 28 |.......D|rawEyes(|
|00002630| 29 3b 0d 09 09 09 09 09 | 09 45 6e 64 55 70 64 61 |);......|.EndUpda|
|00002640| 74 65 28 28 57 69 6e 64 | 6f 77 50 74 72 29 20 6d |te((Wind|owPtr) m|
|00002650| 79 45 76 65 6e 74 2e 6d | 65 73 73 61 67 65 29 3b |yEvent.m|essage);|
|00002660| 0d 09 09 09 09 09 7d 0d | 09 09 09 09 09 62 72 65 |......}.|.....bre|
|00002670| 61 6b 3b 0d 09 09 09 09 | 09 09 09 0d 09 09 09 09 |ak;.....|........|
|00002680| 63 61 73 65 20 6b 65 79 | 44 6f 77 6e 3a 0d 09 09 |case key|Down:...|
|00002690| 09 09 63 61 73 65 20 61 | 75 74 6f 4b 65 79 3a 09 |..case a|utoKey:.|
|000026a0| 09 09 09 09 2f 2a 20 6b | 65 79 20 70 72 65 73 73 |..../* k|ey press|
|000026b0| 65 64 20 6f 6e 63 65 20 | 6f 72 20 68 65 6c 64 20 |ed once |or held |
|000026c0| 64 6f 77 6e 20 74 6f 20 | 72 65 70 65 61 74 20 2a |down to |repeat *|
|000026d0| 2f 0d 09 09 09 09 09 69 | 66 20 28 6d 79 57 69 6e |/......i|f (myWin|
|000026e0| 64 6f 77 20 3d 3d 20 46 | 72 6f 6e 74 57 69 6e 64 |dow == F|rontWind|
|000026f0| 6f 77 28 29 29 20 7b 0d | 09 09 09 09 09 09 74 68 |ow()) {.|......th|
|00002700| 65 43 68 61 72 20 3d 20 | 28 6d 79 45 76 65 6e 74 |eChar = |(myEvent|
|00002710| 2e 6d 65 73 73 61 67 65 | 20 26 20 63 68 61 72 43 |.message| & charC|
|00002720| 6f 64 65 4d 61 73 6b 29 | 3b 20 2f 2a 20 67 65 74 |odeMask)|; /* get|
|00002730| 20 74 68 65 20 63 68 61 | 72 20 2a 2f 0d 09 09 09 | the cha|r */....|
|00002740| 09 09 09 2f 2a 20 0d 09 | 09 09 09 09 09 2a 2a 09 |.../* ..|.....**.|
|00002750| 49 66 20 43 6f 6d 6d 61 | 6e 64 20 6b 65 79 20 64 |If Comma|nd key d|
|00002760| 6f 77 6e 2c 20 64 6f 20 | 69 74 20 61 73 20 61 20 |own, do |it as a |
|00002770| 4d 65 6e 75 20 43 6f 6d | 6d 61 6e 64 2e 0d 09 09 |Menu Com|mand....|
|00002780| 09 09 09 09 2a 2f 0d 09 | 09 09 09 09 09 69 66 20 |....*/..|.....if |
|00002790| 28 6d 79 45 76 65 6e 74 | 2e 6d 6f 64 69 66 69 65 |(myEvent|.modifie|
|000027a0| 72 73 20 26 20 63 6d 64 | 4b 65 79 29 0d 09 09 09 |rs & cmd|Key)....|
|000027b0| 09 09 09 09 44 6f 43 6f | 6d 6d 61 6e 64 28 4d 65 |....DoCo|mmand(Me|
|000027c0| 6e 75 4b 65 79 28 74 68 | 65 43 68 61 72 29 29 3b |nuKey(th|eChar));|
|000027d0| 0d 09 09 09 09 09 7d 0d | 09 09 09 09 09 62 72 65 |......}.|.....bre|
|000027e0| 61 6b 3b 0d 0d 09 09 09 | 7d 0d 09 09 7d 0d 0d 09 |ak;.....|}...}...|
|000027f0| 09 2f 2a 09 0d 09 09 2a | 2a 09 49 66 20 77 65 20 |./*....*|*.If we |
|00002800| 68 61 76 65 20 6d 65 6e | 75 20 69 74 65 6d 20 63 |have men|u item c|
|00002810| 68 65 63 6b 65 64 2c 20 | 67 6f 20 61 68 65 61 64 |hecked, |go ahead|
|00002820| 20 61 6e 64 20 61 6e 69 | 6d 61 74 65 20 63 6f 6c | and ani|mate col|
|00002830| 6f 72 73 2e 0d 09 09 2a | 2f 0d 09 09 69 66 20 28 |ors....*|/...if (|
|00002840| 74 75 62 65 43 68 65 63 | 6b 29 20 53 68 69 66 74 |tubeChec|k) Shift|
|00002850| 79 43 6f 6c 6f 72 73 28 | 29 3b 0d 09 09 0d 09 7d |yColors(|);.....}|
|00002860| 20 77 68 69 6c 65 20 28 | 21 64 6f 6e 65 46 6c 61 | while (|!doneFla|
|00002870| 67 29 3b 0d 0d 09 2f 2a | 0d 09 2a 2a 09 63 6c 65 |g);.../*|..**.cle|
|00002880| 61 6e 20 75 70 20 61 66 | 74 65 72 20 70 61 6c 65 |an up af|ter pale|
|00002890| 74 74 65 20 6d 61 6e 61 | 67 65 72 2c 20 0d 09 2a |tte mana|ger, ..*|
|000028a0| 2a 09 73 6f 20 68 65 20 | 63 61 6e 20 63 68 75 63 |*.so he |can chuc|
|000028b0| 6b 20 74 68 65 20 70 61 | 6c 65 74 74 65 20 69 6e |k the pa|lette in|
|000028c0| 20 75 73 65 2e 0d 09 2a | 2f 0d 09 44 69 73 70 6f | use...*|/..Dispo|
|000028d0| 73 65 57 69 6e 64 6f 77 | 20 28 6d 79 57 69 6e 64 |seWindow| (myWind|
|000028e0| 6f 77 29 3b 0d 7d 0d 0d | 2f 2a 0d 2a 2a 09 54 68 |ow);.}..|/*.**.Th|
|000028f0| 69 73 20 72 6f 75 74 69 | 6e 65 20 77 69 6c 6c 20 |is routi|ne will |
|00002900| 75 70 64 61 74 65 20 74 | 68 65 20 77 69 6e 64 6f |update t|he windo|
|00002910| 77 20 77 68 65 6e 20 72 | 65 71 75 69 72 65 64 20 |w when r|equired |
|00002920| 62 79 20 75 70 64 61 74 | 65 20 65 76 65 6e 74 73 |by updat|e events|
|00002930| 2e 09 49 74 0d 2a 2a 09 | 77 69 6c 6c 20 64 72 61 |..It.**.|will dra|
|00002940| 77 20 74 77 6f 20 63 69 | 72 63 75 6c 61 72 20 64 |w two ci|rcular d|
|00002950| 75 64 65 73 20 74 68 61 | 74 20 61 72 65 20 69 6e |udes tha|t are in|
|00002960| 64 65 78 65 64 20 69 6e | 20 63 6f 6c 6f 72 73 20 |dexed in| colors |
|00002970| 74 68 72 6f 75 67 68 20 | 74 68 65 20 63 6f 6c 6f |through |the colo|
|00002980| 72 73 0d 2a 2a 09 77 65 | 20 61 72 65 20 75 73 69 |rs.**.we| are usi|
|00002990| 6e 67 2e 20 30 20 61 6e | 64 20 31 20 61 72 65 20 |ng. 0 an|d 1 are |
|000029a0| 73 6b 69 70 70 65 64 2c | 20 73 69 6e 63 65 20 74 |skipped,| since t|
|000029b0| 68 6f 73 65 20 61 72 65 | 20 77 68 69 74 65 20 61 |hose are| white a|
|000029c0| 6e 64 20 62 6c 61 63 6b | 20 69 6e 20 74 68 65 0d |nd black| in the.|
|000029d0| 2a 2a 09 70 61 6c 65 74 | 74 65 2e 0d 2a 2f 0d 76 |**.palet|te..*/.v|
|000029e0| 6f 69 64 20 44 72 61 77 | 45 79 65 73 28 29 0d 7b |oid Draw|Eyes().{|
|000029f0| 0d 09 52 65 63 74 09 74 | 65 6d 70 52 65 63 74 3b |..Rect.t|empRect;|
|00002a00| 0d 09 69 6e 74 09 09 69 | 3b 0d 09 0d 09 53 65 74 |..int..i|;....Set|
|00002a10| 52 65 63 74 28 26 74 65 | 6d 70 52 65 63 74 2c 20 |Rect(&te|mpRect, |
|00002a20| 6e 75 6d 43 6f 6c 6f 72 | 73 2c 20 6e 75 6d 43 6f |numColor|s, numCo|
|00002a30| 6c 6f 72 73 2c 20 6e 75 | 6d 43 6f 6c 6f 72 73 2c |lors, nu|mColors,|
|00002a40| 20 6e 75 6d 43 6f 6c 6f | 72 73 29 3b 0d 09 66 6f | numColo|rs);..fo|
|00002a50| 72 20 28 69 20 3d 20 32 | 3b 20 69 20 3c 3d 20 74 |r (i = 2|; i <= t|
|00002a60| 6f 74 61 6c 43 6f 6c 6f | 72 73 3b 20 69 2b 2b 29 |otalColo|rs; i++)|
|00002a70| 20 7b 0d 09 09 50 6d 46 | 6f 72 65 43 6f 6c 6f 72 | {...PmF|oreColor|
|00002a80| 28 69 29 3b 0d 09 09 46 | 72 61 6d 65 4f 76 61 6c |(i);...F|rameOval|
|00002a90| 20 28 26 74 65 6d 70 52 | 65 63 74 29 3b 0d 09 09 | (&tempR|ect);...|
|00002aa0| 49 6e 73 65 74 52 65 63 | 74 20 28 26 74 65 6d 70 |InsetRec|t (&temp|
|00002ab0| 52 65 63 74 2c 20 2d 31 | 2c 20 2d 31 29 3b 0d 09 |Rect, -1|, -1);..|
|00002ac0| 7d 0d 09 0d 09 53 65 74 | 52 65 63 74 28 26 74 65 |}....Set|Rect(&te|
|00002ad0| 6d 70 52 65 63 74 2c 20 | 6e 75 6d 43 6f 6c 6f 72 |mpRect, |numColor|
|00002ae0| 73 2a 33 2c 20 6e 75 6d | 43 6f 6c 6f 72 73 2c 20 |s*3, num|Colors, |
|00002af0| 6e 75 6d 43 6f 6c 6f 72 | 73 2a 33 2c 20 6e 75 6d |numColor|s*3, num|
|00002b00| 43 6f 6c 6f 72 73 29 3b | 0d 09 66 6f 72 20 28 69 |Colors);|..for (i|
|00002b10| 20 3d 20 74 6f 74 61 6c | 43 6f 6c 6f 72 73 3b 20 | = total|Colors; |
|00002b20| 69 20 3e 3d 20 32 3b 20 | 69 2d 2d 29 20 7b 0d 09 |i >= 2; |i--) {..|
|00002b30| 09 50 6d 46 6f 72 65 43 | 6f 6c 6f 72 28 69 29 3b |.PmForeC|olor(i);|
|00002b40| 0d 09 09 46 72 61 6d 65 | 4f 76 61 6c 20 28 26 74 |...Frame|Oval (&t|
|00002b50| 65 6d 70 52 65 63 74 29 | 3b 0d 09 09 49 6e 73 65 |empRect)|;...Inse|
|00002b60| 74 52 65 63 74 20 28 26 | 74 65 6d 70 52 65 63 74 |tRect (&|tempRect|
|00002b70| 2c 20 2d 31 2c 20 2d 31 | 29 3b 0d 09 7d 0d 7d 0d |, -1, -1|);..}.}.|
|00002b80| 0d 0d 2f 2a 0d 2a 2a 09 | 52 65 61 64 20 6d 65 6e |../*.**.|Read men|
|00002b90| 75 20 64 65 73 63 72 69 | 70 74 69 6f 6e 73 20 66 |u descri|ptions f|
|00002ba0| 72 6f 6d 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |rom reso|urce fil|
|00002bb0| 65 20 69 6e 74 6f 20 6d | 65 6d 6f 72 79 20 0d 2a |e into m|emory .*|
|00002bc0| 2a 09 61 6e 64 20 73 74 | 6f 72 65 20 68 61 6e 64 |*.and st|ore hand|
|00002bd0| 6c 65 73 20 69 6e 20 6d | 79 4d 65 6e 75 73 20 61 |les in m|yMenus a|
|00002be0| 72 72 61 79 2e 0d 2a 2a | 09 49 6e 73 65 72 74 20 |rray..**|.Insert |
|00002bf0| 69 6e 74 6f 20 4d 65 6e | 75 42 61 72 20 61 6e 64 |into Men|uBar and|
|00002c00| 20 64 72 61 77 2e 0d 2a | 2f 0d 76 6f 69 64 20 53 | draw..*|/.void S|
|00002c10| 65 74 55 70 4d 65 6e 75 | 73 28 29 0d 7b 0d 09 69 |etUpMenu|s().{..i|
|00002c20| 6e 74 20 69 3b 0d 0d 09 | 6d 79 4d 65 6e 75 73 5b |nt i;...|myMenus[|
|00002c30| 61 70 70 6c 65 4d 5d 20 | 3d 20 47 65 74 4d 65 6e |appleM] |= GetMen|
|00002c40| 75 28 61 70 70 6c 65 49 | 44 29 3b 20 09 09 2f 2a |u(appleI|D); ../*|
|00002c50| 20 72 65 61 64 20 41 70 | 70 6c 65 20 6d 65 6e 75 | read Ap|ple menu|
|00002c60| 20 66 72 6f 6d 20 72 65 | 73 6f 75 72 63 65 20 66 | from re|source f|
|00002c70| 69 6c 65 20 2a 2f 0d 09 | 41 64 64 52 65 73 4d 65 |ile */..|AddResMe|
|00002c80| 6e 75 28 6d 79 4d 65 6e | 75 73 5b 61 70 70 6c 65 |nu(myMen|us[apple|
|00002c90| 4d 5d 2c 20 27 44 52 56 | 52 27 29 3b 09 09 2f 2a |M], 'DRV|R');../*|
|00002ca0| 20 61 64 64 20 64 65 73 | 6b 20 61 63 63 65 73 73 | add des|k access|
|00002cb0| 6f 72 79 20 6e 61 6d 65 | 73 20 74 6f 20 41 70 70 |ory name|s to App|
|00002cc0| 6c 65 20 6d 65 6e 75 20 | 2a 2f 0d 09 6d 79 4d 65 |le menu |*/..myMe|
|00002cd0| 6e 75 73 5b 66 69 6c 65 | 4d 5d 20 3d 20 47 65 74 |nus[file|M] = Get|
|00002ce0| 4d 65 6e 75 28 66 69 6c | 65 49 44 29 3b 09 09 09 |Menu(fil|eID);...|
|00002cf0| 2f 2a 20 72 65 61 64 20 | 66 69 6c 65 20 6d 65 6e |/* read |file men|
|00002d00| 75 20 66 72 6f 6d 20 72 | 65 73 6f 75 72 63 65 20 |u from r|esource |
|00002d10| 66 69 6c 65 20 2a 2f 0d | 09 6d 79 4d 65 6e 75 73 |file */.|.myMenus|
|00002d20| 5b 65 64 69 74 4d 5d 20 | 3d 20 47 65 74 4d 65 6e |[editM] |= GetMen|
|00002d30| 75 28 65 64 69 74 49 44 | 29 3b 09 09 09 2f 2a 20 |u(editID|);.../* |
|00002d40| 72 65 61 64 20 65 64 69 | 74 20 6d 65 6e 75 20 66 |read edi|t menu f|
|00002d50| 72 6f 6d 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |rom reso|urce fil|
|00002d60| 65 20 2a 2f 0d 0d 09 66 | 6f 72 20 28 69 20 3d 20 |e */...f|or (i = |
|00002d70| 30 3b 20 69 20 3c 20 6d | 65 6e 75 43 6f 75 6e 74 |0; i < m|enuCount|
|00002d80| 3b 20 69 2b 2b 29 20 0d | 09 09 49 6e 73 65 72 74 |; i++) .|..Insert|
|00002d90| 4d 65 6e 75 28 6d 79 4d | 65 6e 75 73 5b 69 5d 2c |Menu(myM|enus[i],|
|00002da0| 20 30 29 3b 20 09 09 09 | 09 2f 2a 20 69 6e 73 74 | 0); ...|./* inst|
|00002db0| 61 6c 6c 20 6d 65 6e 75 | 73 20 69 6e 20 6d 65 6e |all menu|s in men|
|00002dc0| 75 20 62 61 72 20 2a 2f | 0d 09 0d 09 44 72 61 77 |u bar */|....Draw|
|00002dd0| 4d 65 6e 75 42 61 72 28 | 29 3b 09 09 09 09 09 09 |MenuBar(|);......|
|00002de0| 09 09 2f 2a 20 61 6e 64 | 20 64 72 61 77 20 6d 65 |../* and| draw me|
|00002df0| 6e 75 20 62 61 72 20 2a | 2f 0d 7d 0d 0d 0d 2f 2a |nu bar *|/.}.../*|
|00002e00| 0d 2a 2a 09 55 73 65 20 | 74 68 65 20 50 61 6c 65 |.**.Use |the Pale|
|00002e10| 74 74 65 20 63 75 72 72 | 65 6e 74 6c 79 20 61 74 |tte curr|ently at|
|00002e20| 74 61 63 68 65 64 20 74 | 6f 20 74 68 65 20 6d 61 |tached t|o the ma|
|00002e30| 69 6e 20 77 69 6e 64 6f | 77 20 74 6f 20 61 6e 69 |in windo|w to ani|
|00002e40| 6d 61 74 65 20 74 68 65 | 20 63 6f 6c 6f 72 73 20 |mate the| colors |
|00002e50| 0d 2a 2a 09 69 6e 20 74 | 68 65 20 63 69 72 63 75 |.**.in t|he circu|
|00002e60| 6c 61 72 20 65 79 65 20 | 73 68 61 70 65 73 2e 20 |lar eye |shapes. |
|00002e70| 20 54 68 69 73 20 77 69 | 6c 6c 20 72 6f 74 61 74 | This wi|ll rotat|
|00002e80| 65 20 74 68 65 6d 20 61 | 72 6f 75 6e 64 20 74 6f |e them a|round to|
|00002e90| 20 67 69 76 65 20 74 68 | 65 20 66 6c 6f 77 69 6e | give th|e flowin|
|00002ea0| 67 20 0d 2a 2a 09 74 75 | 62 65 20 65 66 66 65 63 |g .**.tu|be effec|
|00002eb0| 74 2e 20 57 65 20 6d 61 | 6b 65 20 74 68 65 20 70 |t. We ma|ke the p|
|00002ec0| 61 6c 65 74 74 65 20 69 | 6e 74 6f 20 61 20 63 6f |alette i|nto a co|
|00002ed0| 6c 6f 72 20 74 61 62 6c | 65 20 73 6f 20 77 65 20 |lor tabl|e so we |
|00002ee0| 63 61 6e 20 6d 6f 76 65 | 20 65 6e 74 72 69 65 73 |can move| entries|
|00002ef0| 20 0d 2a 2a 09 61 72 6f | 75 6e 64 2e 09 57 65 20 | .**.aro|und..We |
|00002f00| 68 61 76 65 20 74 6f 20 | 73 6b 69 70 20 74 68 65 |have to |skip the|
|00002f10| 20 66 69 72 73 74 20 74 | 77 6f 20 65 6e 74 72 69 | first t|wo entri|
|00002f20| 65 73 20 73 69 6e 63 65 | 20 74 68 6f 73 65 20 61 |es since| those a|
|00002f30| 72 65 20 62 6c 61 63 6b | 20 61 6e 64 20 77 68 69 |re black| and whi|
|00002f40| 74 65 2e 20 0d 2a 2a 09 | 28 65 6e 74 72 69 65 73 |te. .**.|(entries|
|00002f50| 20 30 20 61 6e 64 20 31 | 29 0d 2a 2f 0d 76 6f 69 | 0 and 1|).*/.voi|
|00002f60| 64 20 53 68 69 66 74 79 | 43 6f 6c 6f 72 73 28 29 |d Shifty|Colors()|
|00002f70| 0d 7b 0d 09 0d 09 50 61 | 6c 65 74 74 65 48 61 6e |.{....Pa|letteHan|
|00002f80| 64 6c 65 09 63 75 72 72 | 50 61 6c 65 74 74 65 3b |dle.curr|Palette;|
|00002f90| 0d 09 43 54 61 62 48 61 | 6e 64 6c 65 09 09 64 65 |..CTabHa|ndle..de|
|00002fa0| 73 74 43 54 61 62 3b 0d | 09 43 6f 6c 6f 72 53 70 |stCTab;.|.ColorSp|
|00002fb0| 65 63 09 09 6c 61 73 74 | 43 53 70 65 63 3b 0d 09 |ec..last|CSpec;..|
|00002fc0| 0d 09 53 65 74 50 6f 72 | 74 20 28 6d 79 57 69 6e |..SetPor|t (myWin|
|00002fd0| 64 6f 77 29 3b 0d 09 0d | 09 63 75 72 72 50 61 6c |dow);...|.currPal|
|00002fe0| 65 74 74 65 20 3d 20 47 | 65 74 50 61 6c 65 74 74 |ette = G|etPalett|
|00002ff0| 65 28 6d 79 57 69 6e 64 | 6f 77 29 3b 0d 09 64 65 |e(myWind|ow);..de|
|00003000| 73 74 43 54 61 62 20 3d | 20 28 43 54 61 62 48 61 |stCTab =| (CTabHa|
|00003010| 6e 64 6c 65 29 20 4e 65 | 77 48 61 6e 64 6c 65 28 |ndle) Ne|wHandle(|
|00003020| 73 69 7a 65 6f 66 28 43 | 6f 6c 6f 72 54 61 62 6c |sizeof(C|olorTabl|
|00003030| 65 29 2b 28 74 6f 74 61 | 6c 43 6f 6c 6f 72 73 2a |e)+(tota|lColors*|
|00003040| 73 69 7a 65 6f 66 28 43 | 6f 6c 6f 72 53 70 65 63 |sizeof(C|olorSpec|
|00003050| 29 29 29 3b 0d 09 69 66 | 20 28 64 65 73 74 43 54 |)));..if| (destCT|
|00003060| 61 62 20 3d 3d 20 6e 69 | 6c 29 20 20 72 65 74 75 |ab == ni|l) retu|
|00003070| 72 6e 3b 0d 09 50 61 6c | 65 74 74 65 32 43 54 61 |rn;..Pal|ette2CTa|
|00003080| 62 28 63 75 72 72 50 61 | 6c 65 74 74 65 2c 20 64 |b(currPa|lette, d|
|00003090| 65 73 74 43 54 61 62 29 | 3b 0d 09 0d 09 2f 2a 0d |estCTab)|;..../*.|
|000030a0| 09 2a 2a 09 4d 6f 76 65 | 20 74 68 65 20 63 6f 6c |.**.Move| the col|
|000030b0| 6f 72 73 20 61 72 6f 75 | 6e 64 20 69 6e 20 74 68 |ors arou|nd in th|
|000030c0| 65 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 2c 20 73 |e color |table, s|
|000030d0| 6b 69 70 70 69 6e 67 20 | 30 20 61 6e 64 20 31 2c |kipping |0 and 1,|
|000030e0| 20 61 6e 64 20 6d 6f 76 | 69 6e 67 0d 09 2a 2a 09 | and mov|ing..**.|
|000030f0| 61 6c 6c 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 73 |all the |elements|
|00003100| 20 64 6f 77 6e 20 62 79 | 20 6f 6e 65 2c 20 61 6e | down by| one, an|
|00003110| 64 20 63 6f 70 79 69 6e | 67 20 74 68 65 20 65 6c |d copyin|g the el|
|00003120| 65 6d 65 6e 74 20 61 74 | 20 32 20 62 61 63 6b 20 |ement at| 2 back |
|00003130| 74 6f 20 74 68 65 20 0d | 09 2a 2a 09 65 6e 64 20 |to the .|.**.end |
|00003140| 6f 66 20 74 68 65 20 74 | 61 62 6c 65 2e 20 54 68 |of the t|able. Th|
|00003150| 65 20 65 66 66 65 63 74 | 20 69 73 20 74 6f 20 72 |e effect| is to r|
|00003160| 6f 74 61 74 65 20 74 68 | 65 20 63 6f 6c 6f 72 73 |otate th|e colors|
|00003170| 20 69 6e 20 74 68 65 20 | 74 61 62 6c 65 2e 0d 09 | in the |table...|
|00003180| 2a 2f 0d 09 6c 61 73 74 | 43 53 70 65 63 20 3d 20 |*/..last|CSpec = |
|00003190| 28 2a 64 65 73 74 43 54 | 61 62 29 2d 3e 63 74 54 |(*destCT|ab)->ctT|
|000031a0| 61 62 6c 65 5b 32 5d 3b | 09 09 09 09 09 09 2f 2a |able[2];|....../*|
|000031b0| 20 70 75 6c 6c 20 66 69 | 72 73 74 20 6f 6e 65 20 | pull fi|rst one |
|000031c0| 6f 66 66 2e 20 2a 2f 0d | 09 42 6c 6f 63 6b 4d 6f |off. */.|.BlockMo|
|000031d0| 76 65 20 28 26 28 2a 64 | 65 73 74 43 54 61 62 29 |ve (&(*d|estCTab)|
|000031e0| 2d 3e 63 74 54 61 62 6c | 65 5b 33 5d 2c 20 0d 09 |->ctTabl|e[3], ..|
|000031f0| 09 09 20 20 20 26 28 2a | 64 65 73 74 43 54 61 62 |.. &(*|destCTab|
|00003200| 29 2d 3e 63 74 54 61 62 | 6c 65 5b 32 5d 2c 20 0d |)->ctTab|le[2], .|
|00003210| 09 09 09 20 20 20 28 6e | 75 6d 43 6f 6c 6f 72 73 |... (n|umColors|
|00003220| 29 20 2a 20 73 69 7a 65 | 6f 66 28 43 6f 6c 6f 72 |) * size|of(Color|
|00003230| 53 70 65 63 29 20 29 3b | 09 09 09 09 2f 2a 20 63 |Spec) );|..../* c|
|00003240| 6f 70 79 20 61 6c 6c 20 | 6f 6e 65 20 65 6e 74 72 |opy all |one entr|
|00003250| 79 20 64 6f 77 6e 2e 20 | 2a 2f 0d 09 28 2a 64 65 |y down. |*/..(*de|
|00003260| 73 74 43 54 61 62 29 2d | 3e 63 74 54 61 62 6c 65 |stCTab)-|>ctTable|
|00003270| 5b 74 6f 74 61 6c 43 6f | 6c 6f 72 73 2d 31 5d 20 |[totalCo|lors-1] |
|00003280| 3d 20 6c 61 73 74 43 53 | 70 65 63 3b 09 09 09 2f |= lastCS|pec;.../|
|00003290| 2a 20 70 75 74 20 6c 61 | 73 74 20 63 6f 6c 6f 72 |* put la|st color|
|000032a0| 20 62 61 63 6b 20 6f 6e | 20 66 72 6f 6e 74 2e 20 | back on| front. |
|000032b0| 2a 2f 0d 09 09 0d 09 41 | 6e 69 6d 61 74 65 50 61 |*/.....A|nimatePa|
|000032c0| 6c 65 74 74 65 28 6d 79 | 57 69 6e 64 6f 77 2c 20 |lette(my|Window, |
|000032d0| 64 65 73 74 43 54 61 62 | 2c 20 32 2c 20 32 2c 20 |destCTab|, 2, 2, |
|000032e0| 6e 75 6d 43 6f 6c 6f 72 | 73 29 3b 0d 09 0d 09 44 |numColor|s);....D|
|000032f0| 69 73 70 6f 73 48 61 6e | 64 6c 65 20 28 28 48 61 |isposHan|dle ((Ha|
|00003300| 6e 64 6c 65 29 20 64 65 | 73 74 43 54 61 62 29 3b |ndle) de|stCTab);|
|00003310| 0d 7d 0d 0d 0d 2f 2a 09 | 0d 2a 2a 09 44 69 73 70 |.}.../*.|.**.Disp|
|00003320| 6c 61 79 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 |lay the |dialog b|
|00003330| 6f 78 20 69 6e 20 72 65 | 73 70 6f 6e 73 65 20 74 |ox in re|sponse t|
|00003340| 6f 20 74 68 65 20 27 41 | 62 6f 75 74 20 54 75 62 |o the 'A|bout Tub|
|00003350| 65 54 65 73 74 27 20 6d | 65 6e 75 20 69 74 65 6d |eTest' m|enu item|
|00003360| 0d 2a 2f 0d 76 6f 69 64 | 20 53 68 6f 77 41 62 6f |.*/.void| ShowAbo|
|00003370| 75 74 4d 65 44 69 61 6c | 6f 67 28 29 0d 7b 0d 09 |utMeDial|og().{..|
|00003380| 44 69 61 6c 6f 67 50 74 | 72 09 74 68 65 44 69 61 |DialogPt|r.theDia|
|00003390| 6c 6f 67 3b 0d 09 73 68 | 6f 72 74 09 09 69 74 65 |log;..sh|ort..ite|
|000033a0| 6d 48 69 74 3b 0d 0d 09 | 74 68 65 44 69 61 6c 6f |mHit;...|theDialo|
|000033b0| 67 20 3d 20 47 65 74 4e | 65 77 44 69 61 6c 6f 67 |g = GetN|ewDialog|
|000033c0| 28 61 62 6f 75 74 4d 65 | 44 4c 4f 47 2c 20 6e 69 |(aboutMe|DLOG, ni|
|000033d0| 6c 2c 20 28 57 69 6e 64 | 6f 77 50 74 72 29 20 2d |l, (Wind|owPtr) -|
|000033e0| 31 29 3b 0d 09 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 |1);..Mod|alDialog|
|000033f0| 28 6e 69 6c 2c 20 26 69 | 74 65 6d 48 69 74 29 3b |(nil, &i|temHit);|
|00003400| 0d 09 44 69 73 70 6f 73 | 44 69 61 6c 6f 67 28 74 |..Dispos|Dialog(t|
|00003410| 68 65 44 69 61 6c 6f 67 | 29 3b 0d 7d 0d 0d 0d 2f |heDialog|);.}.../|
|00003420| 2a 0d 2a 2a 09 45 78 65 | 63 75 74 65 20 6d 65 6e |*.**.Exe|cute men|
|00003430| 75 20 63 6f 6d 6d 61 6e | 64 20 73 70 65 63 69 66 |u comman|d specif|
|00003440| 69 65 64 20 62 79 20 6d | 52 65 73 75 6c 74 2c 0d |ied by m|Result,.|
|00003450| 2a 2a 09 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |**.the r|esult of|
|00003460| 20 4d 65 6e 75 53 65 6c | 65 63 74 0d 2a 2f 0d 76 | MenuSel|ect.*/.v|
|00003470| 6f 69 64 20 44 6f 43 6f | 6d 6d 61 6e 64 28 6c 6f |oid DoCo|mmand(lo|
|00003480| 6e 67 20 69 6e 74 20 6d | 52 65 73 75 6c 74 29 0d |ng int m|Result).|
|00003490| 7b 0d 09 73 68 6f 72 74 | 09 74 68 65 49 74 65 6d |{..short|.theItem|
|000034a0| 2c 09 09 09 09 09 09 09 | 2f 2a 20 6d 65 6e 75 20 |,.......|/* menu |
|000034b0| 69 74 65 6d 20 6e 75 6d | 62 65 72 20 66 72 6f 6d |item num|ber from|
|000034c0| 20 6d 52 65 73 75 6c 74 | 20 6c 6f 77 2d 6f 72 64 | mResult| low-ord|
|000034d0| 65 72 20 77 6f 72 64 20 | 2a 2f 0d 09 09 09 74 68 |er word |*/....th|
|000034e0| 65 4d 65 6e 75 3b 09 09 | 09 09 09 09 09 2f 2a 20 |eMenu;..|...../* |
|000034f0| 6d 65 6e 75 20 6e 75 6d | 62 65 72 20 66 72 6f 6d |menu num|ber from|
|00003500| 20 6d 52 65 73 75 6c 74 | 20 68 69 67 68 2d 6f 72 | mResult| high-or|
|00003510| 64 65 72 20 77 6f 72 64 | 20 2a 2f 0d 09 53 74 72 |der word| */..Str|
|00003520| 32 35 35 09 6e 61 6d 65 | 3b 09 09 09 09 09 09 09 |255.name|;.......|
|00003530| 09 2f 2a 20 64 65 73 6b | 20 61 63 63 65 73 73 6f |./* desk| accesso|
|00003540| 72 79 20 6e 61 6d 65 20 | 2a 2f 0d 09 69 6e 74 09 |ry name |*/..int.|
|00003550| 09 74 65 6d 70 3b 0d 09 | 42 6f 6f 6c 65 61 6e 09 |.temp;..|Boolean.|
|00003560| 64 75 6d 6d 79 3b 0d 0d | 09 74 68 65 49 74 65 6d |dummy;..|.theItem|
|00003570| 20 3d 20 4c 6f 57 6f 72 | 64 28 6d 52 65 73 75 6c | = LoWor|d(mResul|
|00003580| 74 29 3b 09 09 09 09 09 | 2f 2a 20 63 61 6c 6c 20 |t);.....|/* call |
|00003590| 54 6f 6f 6c 62 6f 78 20 | 55 74 69 6c 69 74 79 20 |Toolbox |Utility |
|000035a0| 72 6f 75 74 69 6e 65 73 | 20 74 6f 20 2a 2f 0d 09 |routines| to */..|
|000035b0| 74 68 65 4d 65 6e 75 20 | 3d 20 48 69 57 6f 72 64 |theMenu |= HiWord|
|000035c0| 28 6d 52 65 73 75 6c 74 | 29 3b 09 09 09 09 09 2f |(mResult|);...../|
|000035d0| 2a 20 73 65 74 20 6d 65 | 6e 75 20 69 74 65 6d 20 |* set me|nu item |
|000035e0| 6e 75 6d 62 65 72 20 61 | 6e 64 20 6d 65 6e 75 20 |number a|nd menu |
|000035f0| 2a 2f 0d 0d 09 73 77 69 | 74 63 68 20 28 74 68 65 |*/...swi|tch (the|
|00003600| 4d 65 6e 75 29 20 7b 09 | 09 09 09 09 09 09 2f 2a |Menu) {.|....../*|
|00003610| 20 73 77 69 74 63 68 20 | 6f 6e 20 6d 65 6e 75 20 | switch |on menu |
|00003620| 49 44 20 2a 2f 0d 0d 09 | 09 63 61 73 65 20 61 70 |ID */...|.case ap|
|00003630| 70 6c 65 49 44 3a 0d 09 | 09 09 69 66 20 28 74 68 |pleID:..|..if (th|
|00003640| 65 49 74 65 6d 20 3d 3d | 20 61 62 6f 75 74 4d 65 |eItem ==| aboutMe|
|00003650| 43 6f 6d 6d 61 6e 64 29 | 0d 09 09 09 09 53 68 6f |Command)|.....Sho|
|00003660| 77 41 62 6f 75 74 4d 65 | 44 69 61 6c 6f 67 28 29 |wAboutMe|Dialog()|
|00003670| 3b 0d 09 09 09 65 6c 73 | 65 20 7b 0d 09 09 09 09 |;....els|e {.....|
|00003680| 09 47 65 74 49 74 65 6d | 28 6d 79 4d 65 6e 75 73 |.GetItem|(myMenus|
|00003690| 5b 61 70 70 6c 65 4d 5d | 2c 20 74 68 65 49 74 65 |[appleM]|, theIte|
|000036a0| 6d 2c 20 6e 61 6d 65 29 | 3b 0d 09 09 09 09 09 74 |m, name)|;......t|
|000036b0| 65 6d 70 20 3d 20 4f 70 | 65 6e 44 65 73 6b 41 63 |emp = Op|enDeskAc|
|000036c0| 63 28 6e 61 6d 65 29 3b | 0d 09 09 09 09 09 53 65 |c(name);|......Se|
|000036d0| 74 50 6f 72 74 28 6d 79 | 57 69 6e 64 6f 77 29 3b |tPort(my|Window);|
|000036e0| 0d 09 09 09 7d 0d 09 09 | 09 62 72 65 61 6b 3b 0d |....}...|.break;.|
|000036f0| 0d 09 09 63 61 73 65 20 | 66 69 6c 65 49 44 3a 0d |...case |fileID:.|
|00003700| 09 09 09 69 66 20 28 74 | 68 65 49 74 65 6d 20 3d |...if (t|heItem =|
|00003710| 3d 20 71 75 69 74 49 74 | 65 6d 29 0d 09 09 09 09 |= quitIt|em).....|
|00003720| 64 6f 6e 65 46 6c 61 67 | 20 3d 20 74 72 75 65 3b |doneFlag| = true;|
|00003730| 0d 09 09 09 65 6c 73 65 | 20 69 66 20 28 74 68 65 |....else| if (the|
|00003740| 49 74 65 6d 20 3d 20 74 | 75 62 75 6c 61 72 49 74 |Item = t|ubularIt|
|00003750| 65 6d 29 20 7b 0d 09 09 | 09 09 09 74 75 62 65 43 |em) {...|...tubeC|
|00003760| 68 65 63 6b 20 3d 20 21 | 74 75 62 65 43 68 65 63 |heck = !|tubeChec|
|00003770| 6b 3b 0d 09 09 09 09 09 | 43 68 65 63 6b 49 74 65 |k;......|CheckIte|
|00003780| 6d 28 6d 79 4d 65 6e 75 | 73 5b 66 69 6c 65 4d 5d |m(myMenu|s[fileM]|
|00003790| 2c 20 74 75 62 75 6c 61 | 72 49 74 65 6d 2c 20 74 |, tubula|rItem, t|
|000037a0| 75 62 65 43 68 65 63 6b | 29 3b 0d 09 09 09 7d 0d |ubeCheck|);....}.|
|000037b0| 09 09 09 62 72 65 61 6b | 3b 0d 0d 09 09 63 61 73 |...break|;....cas|
|000037c0| 65 20 65 64 69 74 49 44 | 3a 0d 09 09 09 64 75 6d |e editID|:....dum|
|000037d0| 6d 79 20 3d 20 53 79 73 | 74 65 6d 45 64 69 74 28 |my = Sys|temEdit(|
|000037e0| 74 68 65 49 74 65 6d 20 | 2d 20 31 29 3b 09 2f 2a |theItem |- 1);./*|
|000037f0| 20 50 61 73 73 20 74 68 | 65 20 63 6f 6d 6d 61 6e | Pass th|e comman|
|00003800| 64 20 6f 6e 20 74 6f 20 | 74 68 65 20 44 65 73 6b |d on to |the Desk|
|00003810| 20 4d 61 6e 61 67 65 72 | 2e 20 2a 2f 0d 09 09 09 | Manager|. */....|
|00003820| 62 72 65 61 6b 3b 0d 09 | 7d 0d 0d 09 48 69 6c 69 |break;..|}...Hili|
|00003830| 74 65 4d 65 6e 75 28 30 | 29 3b 09 09 09 09 09 09 |teMenu(0|);......|
|00003840| 09 09 2f 2a 20 55 6e 68 | 69 67 68 6c 69 67 68 74 |../* Unh|ighlight|
|00003850| 20 6d 65 6e 75 20 74 69 | 74 6c 65 20 2a 2f 0d 09 | menu ti|tle */..|
|00003860| 09 09 09 09 09 09 09 09 | 09 09 09 2f 2a 20 28 68 |........|.../* (h|
|00003870| 69 67 68 6c 69 67 68 74 | 65 64 20 62 79 20 4d 65 |ighlight|ed by Me|
|00003880| 6e 75 53 65 6c 65 63 74 | 29 20 2a 2f 0d 7d 0d 00 |nuSelect|) */.}..|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 01 00 00 00 01 c8 | 00 00 00 c8 00 00 00 3e |........|.......>|
|00003910| 2c 78 b4 00 2b d9 20 00 | 41 7a 12 00 2a ed de 40 |,x..+. .|Az..*..@|
|00003920| 80 65 5c 00 3d ea 86 00 | 00 00 07 00 00 00 00 01 |.e\.=...|........|
|00003930| 0a 54 75 62 65 54 65 73 | 74 2e 63 54 02 00 00 00 |.TubeTes|t.cT....|
|00003940| 54 45 58 54 4d 50 53 20 | 01 00 00 00 00 c0 00 00 |TEXTMPS |........|
|00003950| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 c0 |..TEXTMP|S ......|
|00003960| 00 00 01 b6 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 9e e9 88 cb 00 00 | 38 0f 00 00 02 06 ff 00 |........|8.......|
|00003980| 00 00 6d 00 00 00 00 00 | 02 ff ff 00 00 bc 33 00 |..m.....|......3.|
|00003990| 00 00 00 00 06 ff ff 00 | 00 bd 23 00 00 00 00 00 |........|..#.....|
|000039a0| 00 ff ff 00 00 be 27 00 | 00 00 00 48 c0 2f 00 ff |......'.|...H./..|
|000039b0| ff ff ff 01 00 00 32 00 | 3e 12 78 00 00 00 00 01 |......2.|>.x.....|
|000039c0| 00 06 ad 00 00 00 82 01 | 00 bb c2 00 00 00 00 9e |........|........|
|000039d0| dd 87 fb 00 94 00 2d a2 | f4 f1 07 00 4b 4e ad 0c |......-.|....KN..|
|000039e0| f2 01 00 00 5a 01 00 45 | be ff ff ff ff 00 00 00 |....Z..E|........|
|000039f0| 10 01 00 00 04 ff ff ff | ff de 98 48 c0 00 6e 31 |........|...H..n1|
|00003a00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 2d 2d |...H..Mo|naco..--|
|00003a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a20| 2d 2d 2d 2d 2d 2d 00 06 | 00 04 00 27 00 00 01 df |------..|...'....|
|00003a30| 02 30 00 27 00 00 01 df | 02 30 9f 1a 86 a4 00 00 |.0.'....|.0......|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 78 |........|.......x|
|00003a50| 00 06 00 00 23 a2 00 00 | 23 a2 05 6d 61 69 6e 00 |....#...|#..main.|
|00003a60| 00 00 29 64 00 00 29 6c | 09 44 72 61 77 45 79 65 |..)d..)l|.DrawEye|
|00003a70| 73 00 00 00 2b 8f 00 00 | 2b 99 0b 53 65 74 55 70 |s...+...|+..SetUp|
|00003a80| 4d 65 6e 75 73 00 00 00 | 2e e2 00 00 2e ee 0d 53 |Menus...|.......S|
|00003a90| 68 69 66 74 79 43 6f 6c | 6f 72 73 00 00 00 32 e9 |hiftyCol|ors...2.|
|00003aa0| 00 00 32 fa 11 53 68 6f | 77 41 62 6f 75 74 4d 65 |..2..Sho|wAboutMe|
|00003ab0| 44 69 61 6c 6f 67 00 00 | 36 70 00 00 36 70 09 44 |Dialog..|6p..6p.D|
|00003ac0| 6f 43 6f 6d 6d 61 6e 64 | 00 00 01 00 00 00 01 c8 |oCommand|........|
|00003ad0| 00 00 00 c8 00 00 00 3e | 00 05 bb e8 04 c8 00 00 |.......>|........|
|00003ae0| 00 1c 00 3e 00 00 4d 50 | 53 52 00 01 00 0a 03 ed |...>..MP|SR......|
|00003af0| ff ff 00 00 00 00 00 00 | 00 00 03 ef ff ff 00 00 |........|........|
|00003b00| 00 4c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.L......|........|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+